@@ -35,7 +35,7 @@ impl<'tcx> GenKillAnalysis<'tcx> for MaybeUninitializedLocals {
3535 type Idx = Local ;
3636
3737 fn statement_effect (
38- & self ,
38+ & mut self ,
3939 trans : & mut impl GenKill < Self :: Idx > ,
4040 statement : & mir:: Statement < ' tcx > ,
4141 loc : Location ,
@@ -44,7 +44,7 @@ impl<'tcx> GenKillAnalysis<'tcx> for MaybeUninitializedLocals {
4444 }
4545
4646 fn terminator_effect (
47- & self ,
47+ & mut self ,
4848 trans : & mut impl GenKill < Self :: Idx > ,
4949 terminator : & Terminator < ' tcx > ,
5050 loc : Location ,
@@ -53,7 +53,7 @@ impl<'tcx> GenKillAnalysis<'tcx> for MaybeUninitializedLocals {
5353 }
5454
5555 fn call_return_effect (
56- & self ,
56+ & mut self ,
5757 trans : & mut impl GenKill < Self :: Idx > ,
5858 _block : BasicBlock ,
5959 return_places : dataflow:: CallReturnPlaces < ' _ , ' tcx > ,
@@ -67,7 +67,7 @@ impl<'tcx> GenKillAnalysis<'tcx> for MaybeUninitializedLocals {
6767
6868 /// See `Analysis::apply_yield_resume_effect`.
6969 fn yield_resume_effect (
70- & self ,
70+ & mut self ,
7171 trans : & mut impl GenKill < Self :: Idx > ,
7272 _resume_block : BasicBlock ,
7373 resume_place : mir:: Place < ' tcx > ,
@@ -112,7 +112,6 @@ where
112112 | NonMutatingUseContext :: Copy
113113 | NonMutatingUseContext :: SharedBorrow
114114 | NonMutatingUseContext :: ShallowBorrow
115- | NonMutatingUseContext :: UniqueBorrow
116115 | NonMutatingUseContext :: AddressOf
117116 | NonMutatingUseContext :: PlaceMention
118117 | NonMutatingUseContext :: Projection ,
0 commit comments