librustc: implement Clone for middle::ty::FreeVar

This commit is contained in:
Kevin Butler 2015-02-15 06:45:23 +00:00
parent 061206b9c7
commit d2f54e6634

View File

@ -6636,7 +6636,7 @@ pub fn accumulate_lifetimes_in_type(accumulator: &mut Vec<ty::Region>,
}
/// A free variable referred to in a function.
#[derive(Copy, RustcEncodable, RustcDecodable)]
#[derive(Copy, Clone, RustcEncodable, RustcDecodable)]
pub struct Freevar {
/// The variable being accessed free.
pub def: def::Def,