mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
Do not continue past `rustc_resolve` when encountering duplicated items Duplicated items cause *lots* of confusing knock down errors. This change side-steps some known ICEs, and reduces the verbosity of crates with duplicated items at the cost of not emitting every error that we could. Noticed just how problematic these can be while looking at https://github.com/rust-lang/rust/pull/160695, as `#[derive]`s are particularly prone to the kind of confusion these duplicates cause. Fix rust-lang/rust#120873, fix rust-lang/rust#123690. r? @petrochenkov