Make PlaceMention a non-mutating use.

This commit is contained in:
Camille GILLOT 2023-04-25 20:09:54 +00:00
parent 77dac91d4f
commit 9325a254f0
7 changed files with 19 additions and 17 deletions

View file

@ -774,6 +774,7 @@ impl Visitor<'_> for CanConstProp {
| NonMutatingUse(NonMutatingUseContext::Move)
| NonMutatingUse(NonMutatingUseContext::Inspect)
| NonMutatingUse(NonMutatingUseContext::Projection)
| NonMutatingUse(NonMutatingUseContext::PlaceMention)
| NonUse(_) => {}
// These could be propagated with a smarter analysis or just some careful thinking about