]> git.lizzy.rs Git - rust.git/commitdiff
librustc: implement Clone for middle::ty::FreeVar
authorKevin Butler <haqkrs@gmail.com>
Sun, 15 Feb 2015 06:45:23 +0000 (06:45 +0000)
committerKevin Butler <haqkrs@gmail.com>
Wed, 18 Feb 2015 00:57:35 +0000 (00:57 +0000)
src/librustc/middle/ty.rs

index ce5f9e213f74144aff6a0b1157524c964f0cdcee..0ed74fc91d4d4299a6008ef4ba6c47d7ff301489 100644 (file)
@@ -6636,7 +6636,7 @@ fn accum_substs(accumulator: &mut Vec<Region>, substs: &Substs) {
 }
 
 /// 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,