mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
e3676b5ab9
Fix ICE in borrowck mutability suggestion with multi-byte ref sigil Fixes rust-lang/rust#139089 Similarly to rust-lang/rust#155068, this is another instance where span arithmetic did not account for multi-byte characters. (Note that the ampersand in the test is full-width) This change also results in correcting some inappropriate suggestions.