-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE with crate "prelude" in doc-tests only #39279
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
This doesn't look like an ICE, but maybe a cargo bug? |
I guess it could be a cargo bug... I don't know enough about the internals. Should I open a bug somewhere else? |
OK, I found something very interesting about this case! Note that this test crate is named 'prelude' (https://github.com/vitiral/notes/blob/rust-ice/rust/prelude/Cargo.toml), but this crate links to another crate named 'prelude'! So when you run Still, I don't know why rustc should get confused there because cargo is supposed to tell rustc exactly which libraries to link to. I'd say this is a cargo bug. @vitiral do you mind filing it here? |
filed at rust-lang/cargo#3599 |
Uh oh!
There was an error while loading. Please reload this page.
The project manages to compile and run the tests but then the doc tests fail. I'm betting there is some kind of name conflict with the crate
prelude
that I am using/developingversion of rust:
running cargo test from this tag:
The text was updated successfully, but these errors were encountered: