Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upcargo fix --edition-idioms fails on `extern crate ignore` #6353
Comments
This comment has been minimized.
This comment has been minimized.
|
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.). |
This comment has been minimized.
This comment has been minimized.
|
Probably related: Depending on a crate which has Can spin off a separate bug if this turns out to be unrelated... |
This comment has been minimized.
This comment has been minimized.
|
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!) |
This comment has been minimized.
This comment has been minimized.
|
It's a deficiency of the migration lint.
|
This comment has been minimized.
This comment has been minimized.
|
We should either
|
alexcrichton
referenced this issue
Nov 28, 2018
Closed
edition idioms: Incorrect suggestion for removing `extern crate ignore;` #56326
This comment has been minimized.
This comment has been minimized.
|
Ok thanks for the info @petrochenkov! I've moved this to rust-lang/rust#56326 and will close this in favor of that. |
illicitonion commentedNov 26, 2018
Problem
A module with
extern crate ignore;causes auto-fixes to fail.Expect
cargo fix --edition-idiomsto 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.