mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-12 01:47:38 +00:00
![]() Improve error reporting for modifications behind `&` references
I had a look at #84210 and noticed that #85823 has effectively already fixed #84210.
However, the string matching in #85823 is _very_ crude and already breaks down when a variable name starts with `mut`. I have made this a bit more robust; further improvements could definitely be made but are complicated by the lack of information provided by an earlier pass:
|
||
---|---|---|
.. | ||
src | ||
Cargo.toml |