Make PlaceMention a non-mutating use.
This commit is contained in:
parent
77dac91d4f
commit
9325a254f0
7 changed files with 19 additions and 17 deletions
|
@ -203,7 +203,9 @@ impl<'mir, 'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> Visitor<'tcx>
|
|||
self.assign(local, DefLocation::Body(location));
|
||||
}
|
||||
|
||||
PlaceContext::NonUse(_) | PlaceContext::MutatingUse(MutatingUseContext::Retag) => {}
|
||||
PlaceContext::NonUse(_)
|
||||
| PlaceContext::NonMutatingUse(NonMutatingUseContext::PlaceMention)
|
||||
| PlaceContext::MutatingUse(MutatingUseContext::Retag) => {}
|
||||
|
||||
PlaceContext::NonMutatingUse(
|
||||
NonMutatingUseContext::Copy | NonMutatingUseContext::Move,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue