@@ -34,7 +34,7 @@ impl<'tcx> GenKillAnalysis<'tcx> for MaybeInitializedLocals {
3434 type Idx = Local ;
3535
3636 fn statement_effect (
37- & self ,
37+ & mut self ,
3838 trans : & mut impl GenKill < Self :: Idx > ,
3939 statement : & mir:: Statement < ' tcx > ,
4040 loc : Location ,
@@ -43,7 +43,7 @@ impl<'tcx> GenKillAnalysis<'tcx> for MaybeInitializedLocals {
4343 }
4444
4545 fn terminator_effect (
46- & self ,
46+ & mut self ,
4747 trans : & mut impl GenKill < Self :: Idx > ,
4848 terminator : & Terminator < ' tcx > ,
4949 loc : Location ,
@@ -52,7 +52,7 @@ impl<'tcx> GenKillAnalysis<'tcx> for MaybeInitializedLocals {
5252 }
5353
5454 fn call_return_effect (
55- & self ,
55+ & mut self ,
5656 trans : & mut impl GenKill < Self :: Idx > ,
5757 _block : BasicBlock ,
5858 return_places : dataflow:: CallReturnPlaces < ' _ , ' tcx > ,
@@ -62,7 +62,7 @@ impl<'tcx> GenKillAnalysis<'tcx> for MaybeInitializedLocals {
6262
6363 /// See `Analysis::apply_yield_resume_effect`.
6464 fn yield_resume_effect (
65- & self ,
65+ & mut self ,
6666 trans : & mut impl GenKill < Self :: Idx > ,
6767 _resume_block : BasicBlock ,
6868 resume_place : mir:: Place < ' tcx > ,
@@ -114,7 +114,6 @@ where
114114 | NonMutatingUseContext :: Copy
115115 | NonMutatingUseContext :: SharedBorrow
116116 | NonMutatingUseContext :: ShallowBorrow
117- | NonMutatingUseContext :: UniqueBorrow
118117 | NonMutatingUseContext :: AddressOf
119118 | NonMutatingUseContext :: PlaceMention
120119 | NonMutatingUseContext :: Projection ,
0 commit comments