mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
7e3c8cf17c
This makes the error message in #28981 a bit shorter (152 to 115 lines). Previous output (the local impl was always printed twice when it conflicted with an external impl): ``` test.rs:3:1: 3:23 error: conflicting implementations for trait `core::ops::Deref` [E0119] test.rs:3 impl<T> Deref for T {} ^~~~~~~~~~~~~~~~~~~~~~ test.rs:3:1: 3:23 help: run `rustc --explain E0119` to see a detailed explanation test.rs:3:1: 3:23 note: conflicting implementation in crate `std` test.rs:3 impl<T> Deref for T {} ^~~~~~~~~~~~~~~~~~~~~~ ``` Output after this patch: ``` test.rs:3:1: 3:23 error: conflicting implementations for trait `core::ops::Deref` [E0119] test.rs:3 impl<T> Deref for T {} ^~~~~~~~~~~~~~~~~~~~~~ test.rs:3:1: 3:23 help: run `rustc --explain E0119` to see a detailed explanation note: conflicting implementation in crate `std` ```