File tree 1 file changed +2
-14
lines changed
compiler/rustc_mir_dataflow/src/impls
1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -222,18 +222,6 @@ impl<'a, 'tcx> AnalysisDomain<'tcx> for MaybeTransitiveLiveLocals<'a> {
222
222
}
223
223
}
224
224
225
- struct TransferWrapper < ' a > ( & ' a mut ChunkedBitSet < Local > ) ;
226
-
227
- impl < ' a > GenKill < Local > for TransferWrapper < ' a > {
228
- fn gen ( & mut self , l : Local ) {
229
- self . 0 . insert ( l) ;
230
- }
231
-
232
- fn kill ( & mut self , l : Local ) {
233
- self . 0 . remove ( l) ;
234
- }
235
- }
236
-
237
225
impl < ' a , ' tcx > Analysis < ' tcx > for MaybeTransitiveLiveLocals < ' a > {
238
226
fn apply_statement_effect (
239
227
& self ,
@@ -271,7 +259,7 @@ impl<'a, 'tcx> Analysis<'tcx> for MaybeTransitiveLiveLocals<'a> {
271
259
return ;
272
260
}
273
261
}
274
- TransferFunction ( & mut TransferWrapper ( trans) ) . visit_statement ( statement, location) ;
262
+ TransferFunction ( trans) . visit_statement ( statement, location) ;
275
263
}
276
264
277
265
fn apply_terminator_effect (
@@ -280,7 +268,7 @@ impl<'a, 'tcx> Analysis<'tcx> for MaybeTransitiveLiveLocals<'a> {
280
268
terminator : & mir:: Terminator < ' tcx > ,
281
269
location : Location ,
282
270
) {
283
- TransferFunction ( & mut TransferWrapper ( trans) ) . visit_terminator ( terminator, location) ;
271
+ TransferFunction ( trans) . visit_terminator ( terminator, location) ;
284
272
}
285
273
286
274
fn apply_call_return_effect (
You can’t perform that action at this time.
0 commit comments