@@ -97,11 +97,10 @@ impl<Bx: BuilderMethods<'a, 'tcx>> LocalAnalyzer<'mir, 'a, 'tcx, Bx> {
97
97
impl < ' mir , ' a : ' mir , ' tcx : ' a , Bx : BuilderMethods < ' a , ' tcx > > Visitor < ' tcx >
98
98
for LocalAnalyzer < ' mir , ' a , ' tcx , Bx > {
99
99
fn visit_assign ( & mut self ,
100
- block : mir:: BasicBlock ,
101
100
place : & mir:: Place < ' tcx > ,
102
101
rvalue : & mir:: Rvalue < ' tcx > ,
103
102
location : Location ) {
104
- debug ! ( "visit_assign(block={:?}, place={:?}, rvalue={:?})" , block , place, rvalue) ;
103
+ debug ! ( "visit_assign(place={:?}, rvalue={:?})" , place, rvalue) ;
105
104
106
105
if let mir:: Place :: Base ( mir:: PlaceBase :: Local ( index) ) = * place {
107
106
self . assign ( index, location) ;
@@ -120,7 +119,6 @@ impl<'mir, 'a: 'mir, 'tcx: 'a, Bx: BuilderMethods<'a, 'tcx>> Visitor<'tcx>
120
119
}
121
120
122
121
fn visit_terminator_kind ( & mut self ,
123
- block : mir:: BasicBlock ,
124
122
kind : & mir:: TerminatorKind < ' tcx > ,
125
123
location : Location ) {
126
124
let check = match * kind {
@@ -148,12 +146,12 @@ impl<'mir, 'a: 'mir, 'tcx: 'a, Bx: BuilderMethods<'a, 'tcx>> Visitor<'tcx>
148
146
}
149
147
}
150
148
151
- self . super_terminator_kind ( block , kind, location) ;
149
+ self . super_terminator_kind ( kind, location) ;
152
150
}
153
151
154
152
fn visit_place ( & mut self ,
155
153
place : & mir:: Place < ' tcx > ,
156
- context : PlaceContext < ' tcx > ,
154
+ context : PlaceContext ,
157
155
location : Location ) {
158
156
debug ! ( "visit_place(place={:?}, context={:?})" , place, context) ;
159
157
let cx = self . fx . cx ;
@@ -205,7 +203,7 @@ impl<'mir, 'a: 'mir, 'tcx: 'a, Bx: BuilderMethods<'a, 'tcx>> Visitor<'tcx>
205
203
206
204
fn visit_local ( & mut self ,
207
205
& local: & mir:: Local ,
208
- context : PlaceContext < ' tcx > ,
206
+ context : PlaceContext ,
209
207
location : Location ) {
210
208
match context {
211
209
PlaceContext :: MutatingUse ( MutatingUseContext :: Call ) => {
@@ -235,11 +233,11 @@ impl<'mir, 'a: 'mir, 'tcx: 'a, Bx: BuilderMethods<'a, 'tcx>> Visitor<'tcx>
235
233
PlaceContext :: NonMutatingUse ( NonMutatingUseContext :: Inspect ) |
236
234
PlaceContext :: MutatingUse ( MutatingUseContext :: Store ) |
237
235
PlaceContext :: MutatingUse ( MutatingUseContext :: AsmOutput ) |
238
- PlaceContext :: MutatingUse ( MutatingUseContext :: Borrow ( .. ) ) |
236
+ PlaceContext :: MutatingUse ( MutatingUseContext :: Borrow ) |
239
237
PlaceContext :: MutatingUse ( MutatingUseContext :: Projection ) |
240
- PlaceContext :: NonMutatingUse ( NonMutatingUseContext :: SharedBorrow ( .. ) ) |
241
- PlaceContext :: NonMutatingUse ( NonMutatingUseContext :: UniqueBorrow ( .. ) ) |
242
- PlaceContext :: NonMutatingUse ( NonMutatingUseContext :: ShallowBorrow ( .. ) ) |
238
+ PlaceContext :: NonMutatingUse ( NonMutatingUseContext :: SharedBorrow ) |
239
+ PlaceContext :: NonMutatingUse ( NonMutatingUseContext :: UniqueBorrow ) |
240
+ PlaceContext :: NonMutatingUse ( NonMutatingUseContext :: ShallowBorrow ) |
243
241
PlaceContext :: NonMutatingUse ( NonMutatingUseContext :: Projection ) => {
244
242
self . not_ssa ( local) ;
245
243
}
0 commit comments