mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 15:50:05 +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.
Documentation on crash tests is at https://rustc-dev-guide.rust-lang.org/tests/compiletest#crash-tests.
Alternatively, you can build the documentation from this repository:
mdbook serve --open src/doc/rustc-dev-guide
The documentation will then be available at http://localhost:3000/tests/compiletest.html#crash-tests.