-
Notifications
You must be signed in to change notification settings - Fork 13.3k
error: duplicate entry for ...
[E0152] doesn't specify a source
#31788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Strange error. The code which spans it is here where it checks all objects definition. It is possible to also add from where this definition comes from. I'm taking a look. |
@GuillaumeGomez I'd require error to give me the source location of 2 definitions before considering this fixed (or if that is not possible, the full path to the item implementing the language item in the external crate) |
Hum... I'll try to add as much information as possible. |
It needs to be reopened. My PR didn't fix it. |
This has been fixed. Current error and code: #![feature(lang_items)]
#[lang = "panic_fmt"]
fn panic_fmt() -> ! {
loop {}
}
fn main() {}
|
…andler-duplicate.rs` Justification: The original test was indended to ensure the error message was correct. The test `panic-handler/panic-handler-duplicate.rs` handles a nearly identical case and the same error. The error is probably covered many other places as well. Related issue: rust-lang#31788
E0152
doesn't specify the source/location of the error. This is the output of rustc when cargo pulls in multiple libcores:The text was updated successfully, but these errors were encountered: