@@ -52,10 +52,12 @@ impl InferenceContext {
52
52
}
53
53
}
54
54
55
+ #[ allow( dead_code) ]
55
56
pub fn cap_var ( & mut self , v : RegionIndex ) {
56
57
self . definitions [ v] . capped = true ;
57
58
}
58
59
60
+ #[ allow( dead_code) ]
59
61
pub fn add_live_point ( & mut self , v : RegionIndex , point : Location ) {
60
62
debug ! ( "add_live_point({:?}, {:?})" , v, point) ;
61
63
let definition = & mut self . definitions [ v] ;
@@ -69,11 +71,13 @@ impl InferenceContext {
69
71
}
70
72
}
71
73
74
+ #[ allow( dead_code) ]
72
75
pub fn add_outlives ( & mut self , sup : RegionIndex , sub : RegionIndex , point : Location ) {
73
76
debug ! ( "add_outlives({:?}: {:?} @ {:?}" , sup, sub, point) ;
74
77
self . constraints . push ( Constraint { sup, sub, point } ) ;
75
78
}
76
79
80
+ #[ allow( dead_code) ]
77
81
pub fn region ( & self , v : RegionIndex ) -> & Region {
78
82
& self . definitions [ v] . value
79
83
}
@@ -130,6 +134,7 @@ impl InferenceContext {
130
134
}
131
135
132
136
struct Dfs < ' a , ' gcx : ' tcx + ' a , ' tcx : ' a > {
137
+ #[ allow( dead_code) ]
133
138
infcx : & ' a InferCtxt < ' a , ' gcx , ' tcx > ,
134
139
mir : & ' a Mir < ' tcx > ,
135
140
}
0 commit comments