diff options
| author | Matthew Kelly <matthew.kelly2@gmail.com> | 2023-02-04 13:01:49 -0500 |
|---|---|---|
| committer | Matthew Kelly <matthew.kelly2@gmail.com> | 2023-02-06 06:58:30 -0500 |
| commit | 2bcd4e256ac00db9185bfbe86286e7a8b35b865f (patch) | |
| tree | 23617bc8e52efec0d1c11de3a342d5a1ba2b70f5 /compiler/rustc_metadata/src/creader.rs | |
| parent | 0c13c172507f01d921808107d2c4ec37b43b982d (diff) | |
| download | rust-2bcd4e256ac00db9185bfbe86286e7a8b35b865f.tar.gz rust-2bcd4e256ac00db9185bfbe86286e7a8b35b865f.zip | |
Add extended error message for E0523
Adds the extended error documentation for E0523 to indicate that the error is no longer produced by the compiler. Update the E0464 documentation to include example code that produces the error. Remove the error message E0523 from the compiler and replace it with an internal compiler error.
Diffstat (limited to 'compiler/rustc_metadata/src/creader.rs')
| -rw-r--r-- | compiler/rustc_metadata/src/creader.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler/rustc_metadata/src/creader.rs b/compiler/rustc_metadata/src/creader.rs index 21652063b47..bf8b8aa2ce4 100644 --- a/compiler/rustc_metadata/src/creader.rs +++ b/compiler/rustc_metadata/src/creader.rs @@ -356,7 +356,12 @@ impl<'a> CrateLoader<'a> { for (_, other) in self.cstore.iter_crate_data() { // Same stable crate id but different SVH if other.stable_crate_id() == root.stable_crate_id() && other.hash() != root.hash() { - return Err(CrateError::SymbolConflictsOthers(root.name())); + bug!( + "Previously returned E0523 here. \ + See https://github.com/rust-lang/rust/pull/100599 for additional discussion.\ + root.name() = {}.", + root.name() + ); } } |
