@@ -29,7 +29,6 @@ use mir;
2929use hir:: def_id:: DefId ;
3030use ty:: { self , TyCtxt , Instance } ;
3131use ty:: layout:: { self , Size } ;
32- use middle:: region;
3332use std:: io;
3433use rustc_serialize:: { Encoder , Decodable , Encodable } ;
3534use rustc_data_structures:: fx:: FxHashMap ;
@@ -40,27 +39,6 @@ use ty::codec::TyDecoder;
4039use std:: sync:: atomic:: { AtomicU32 , Ordering } ;
4140use std:: num:: NonZeroU32 ;
4241
43- #[ derive( Clone , Debug , PartialEq , Eq , Hash , RustcEncodable , RustcDecodable ) ]
44- pub enum Lock {
45- NoLock ,
46- WriteLock ( DynamicLifetime ) ,
47- /// This should never be empty -- that would be a read lock held and nobody
48- /// there to release it...
49- ReadLock ( Vec < DynamicLifetime > ) ,
50- }
51-
52- #[ derive( Copy , Clone , Debug , PartialEq , Eq , Hash , RustcEncodable , RustcDecodable ) ]
53- pub struct DynamicLifetime {
54- pub frame : usize ,
55- pub region : Option < region:: Scope > , // "None" indicates "until the function ends"
56- }
57-
58- #[ derive( Copy , Clone , Debug , PartialEq , Eq , RustcEncodable , RustcDecodable ) ]
59- pub enum AccessKind {
60- Read ,
61- Write ,
62- }
63-
6442/// Uniquely identifies a specific constant or static.
6543#[ derive( Copy , Clone , Debug , Eq , PartialEq , Hash , RustcEncodable , RustcDecodable ) ]
6644pub struct GlobalId < ' tcx > {
0 commit comments