Skip to content

Commit d2f54e6

Browse files
committed
librustc: implement Clone for middle::ty::FreeVar
1 parent 061206b commit d2f54e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/ty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6636,7 +6636,7 @@ pub fn accumulate_lifetimes_in_type(accumulator: &mut Vec<ty::Region>,
66366636
}
66376637

66386638
/// A free variable referred to in a function.
6639-
#[derive(Copy, RustcEncodable, RustcDecodable)]
6639+
#[derive(Copy, Clone, RustcEncodable, RustcDecodable)]
66406640
pub struct Freevar {
66416641
/// The variable being accessed free.
66426642
pub def: def::Def,

0 commit comments

Comments
 (0)