@@ -29,7 +29,6 @@ use mir;
29
29
use hir:: def_id:: DefId ;
30
30
use ty:: { self , TyCtxt , Instance } ;
31
31
use ty:: layout:: { self , Size } ;
32
- use middle:: region;
33
32
use std:: io;
34
33
use rustc_serialize:: { Encoder , Decodable , Encodable } ;
35
34
use rustc_data_structures:: fx:: FxHashMap ;
@@ -40,27 +39,6 @@ use ty::codec::TyDecoder;
40
39
use std:: sync:: atomic:: { AtomicU32 , Ordering } ;
41
40
use std:: num:: NonZeroU32 ;
42
41
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
-
64
42
/// Uniquely identifies a specific constant or static.
65
43
#[ derive( Copy , Clone , Debug , Eq , PartialEq , Hash , RustcEncodable , RustcDecodable ) ]
66
44
pub struct GlobalId < ' tcx > {
0 commit comments