Skip to content

Commit

Permalink
librustc: implement Clone for middle::ty::FreeVar
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryman committed Feb 18, 2015
1 parent 061206b commit d2f54e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/middle/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d2f54e6

Please sign in to comment.