mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 09:38:26 +03:00
520a3c41cd
fix ICE when {{root}} appears in import suggestions
Fixes rust-lang/rust#150103
When wrong nested imports like `use A::{::Fish}` were used, the internal {{root}} would appear in diagnostic suggestions, causing an ICE in `join_path_idents` which asserted that **{{root}} should only appear at the start of a path**.
r? ``@matthiaskrgr``