-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
cargo fix --edition-idioms fails on extern crate ignore
#6353
Comments
That's interesting. It seems to fail with any crate with a name that matches any item in the standard prelude (including attributes, macros, functions, types, etc.). |
Probably related: Depending on a crate which has Can spin off a separate bug if this turns out to be unrelated... |
cc @petrochenkov, is this a bug or expected behavior? Specifically it looks like with use ignore; but this succeeds: use ::ignore; (and @ehuss indicates that this applies to anything in the prelude!) |
It's a deficiency of the migration lint.
|
We should either
|
Ok thanks for the info @petrochenkov! I've moved this to rust-lang/rust#56326 and will close this in favor of that. |
Problem
A module with
extern crate ignore;
causes auto-fixes to fail.Expect
cargo fix --edition-idioms
to succeed. Instead, it errors and asks me to file a bug.Steps
Output of
cargo version
:If I instead replace with
use ::ignore;
it seems to work fine.The text was updated successfully, but these errors were encountered: