This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
compiler/rustc_mir_dataflow/src/impls Expand file tree Collapse file tree 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> {
222222 }
223223}
224224
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-
237225impl < ' a , ' tcx > Analysis < ' tcx > for MaybeTransitiveLiveLocals < ' a > {
238226 fn apply_statement_effect (
239227 & self ,
@@ -271,7 +259,7 @@ impl<'a, 'tcx> Analysis<'tcx> for MaybeTransitiveLiveLocals<'a> {
271259 return ;
272260 }
273261 }
274- TransferFunction ( & mut TransferWrapper ( trans) ) . visit_statement ( statement, location) ;
262+ TransferFunction ( trans) . visit_statement ( statement, location) ;
275263 }
276264
277265 fn apply_terminator_effect (
@@ -280,7 +268,7 @@ impl<'a, 'tcx> Analysis<'tcx> for MaybeTransitiveLiveLocals<'a> {
280268 terminator : & mir:: Terminator < ' tcx > ,
281269 location : Location ,
282270 ) {
283- TransferFunction ( & mut TransferWrapper ( trans) ) . visit_terminator ( terminator, location) ;
271+ TransferFunction ( trans) . visit_terminator ( terminator, location) ;
284272 }
285273
286274 fn apply_call_return_effect (
You can’t perform that action at this time.
0 commit comments