diff --git a/src/librustc_metadata/creader.rs b/src/librustc_metadata/creader.rs index 7965228d43be..d07179749d9a 100644 --- a/src/librustc_metadata/creader.rs +++ b/src/librustc_metadata/creader.rs @@ -298,7 +298,7 @@ impl<'a> CrateReader<'a> { if other.name() == crate_name && // same crate-name other.disambiguator() == disambiguator && // same crate-disambiguator other.hash() != svh { // but different SVH - span_fatal!(self.sess, span, E0522, + span_fatal!(self.sess, span, E0523, "found two different crates with name `{}` that are \ not distinguished by differing `-C metadata`. This \ will result in symbol conflicts between the two.", diff --git a/src/librustc_metadata/diagnostics.rs b/src/librustc_metadata/diagnostics.rs index ea6e4b57bbae..8fa23de9a2d1 100644 --- a/src/librustc_metadata/diagnostics.rs +++ b/src/librustc_metadata/diagnostics.rs @@ -88,5 +88,5 @@ register_diagnostics! { E0469, // imported macro not found E0470, // reexported macro not found E0519, // local crate and dependency have same (crate-name, disambiguator) - E0522, // two dependencies have same (crate-name, disambiguator) but different SVH + E0523, // two dependencies have same (crate-name, disambiguator) but different SVH }