mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
39631fdac1
Consts and unit structs in patterns can be confusing if they are mistaken for new bindings. We already provide some context for unit structs and consts that come from the current crate, we now also point at those from foreign crates, and we properly skip cases where the pattern has type parameters which can't be confused with a new binding. Make new binding suggestion verbose.