-
Notifications
You must be signed in to change notification settings - Fork 932
Closed
Labels
bugPanic, non-idempotency, invalid code, etc.Panic, non-idempotency, invalid code, etc.
Milestone
Description
With a 2015-edition crate, "cargo fmt" fails on both current beta and nightly, whereas stable works:
% cargo fmt --version && cargo fmt -- --check
rustfmt 1.0.3-stable (d6829d6 2019-02-14)
% cargo +nightly fmt --version && cargo +nightly fmt -- --check
rustfmt 1.2.2-nightly (5274b49 2019-04-24)
error[E0583]: file not found for module `common`
--> /home/rotty/src/crates/zmq/tests/connection.rs:13:5
...
% cargo +beta fmt --version && cargo +beta fmt -- --check
error[E0583]: file not found for module `common`
...
Note that for beta, the --version
flag seems to be broken as well; it yields no output, although rustfmt --version
works:
% rustup run beta rustfmt --version
rustfmt 1.2.0-beta (09940a7 2019-03-27)
Anyway, to reproduce, you can run the following:
% git clone -b rustfmt-issue/file-not-found https://github.com/rotty/rust-zmq.git
% cd rust-zmq
% cargo +nightly fmt -- --check
error[E0583]: file not found for module `common`
...
% cargo fmt -- --check
Metadata
Metadata
Assignees
Labels
bugPanic, non-idempotency, invalid code, etc.Panic, non-idempotency, invalid code, etc.