From d2f54e663400b98c368710669ad9a966fa950803 Mon Sep 17 00:00:00 2001 From: Kevin Butler Date: Sun, 15 Feb 2015 06:45:23 +0000 Subject: [PATCH] librustc: implement Clone for middle::ty::FreeVar --- src/librustc/middle/ty.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/middle/ty.rs b/src/librustc/middle/ty.rs index ce5f9e213f7..0ed74fc91d4 100644 --- a/src/librustc/middle/ty.rs +++ b/src/librustc/middle/ty.rs @@ -6636,7 +6636,7 @@ pub fn accumulate_lifetimes_in_type(accumulator: &mut Vec, } /// 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,