mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-14 08:43:10 +00:00
librustc: implement Clone for middle::ty::FreeVar
This commit is contained in:
parent
061206b9c7
commit
d2f54e6634
@ -6636,7 +6636,7 @@ pub fn accumulate_lifetimes_in_type(accumulator: &mut Vec<ty::Region>,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// A free variable referred to in a function.
|
/// A free variable referred to in a function.
|
||||||
#[derive(Copy, RustcEncodable, RustcDecodable)]
|
#[derive(Copy, Clone, RustcEncodable, RustcDecodable)]
|
||||||
pub struct Freevar {
|
pub struct Freevar {
|
||||||
/// The variable being accessed free.
|
/// The variable being accessed free.
|
||||||
pub def: def::Def,
|
pub def: def::Def,
|
||||||
|
Loading…
Reference in New Issue
Block a user