You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rustfmt no longer builds after rust-lang/rust#69659 #72232
Hello, this is your friendly neighborhood mergebot.
After merging PR #69659, I observed that the tool rustfmt no longer builds.
A follow-up PR to the repository https://github.com/rust-lang/rustfmt is needed to fix the fallout.
cc @CAD97, do you think you would have time to do the follow-up work?
If so, that would be great!
FWIW, I just tried on commit 0271499, which is the parent to #69659's merge commit ed084b0, and rustfmt built fine. The errors I see later are in rustc-ap-rustc_index and rustc-ap-rustc_span, lots of "... is not a member of trait std::iter::Step".
Could well be that the other mentioned PRs would also cause problems though.
I just tried updating to latest rustfmt from master. I'm not sure if it because I'm targeting wasm32-unkonwn-unknown, but will look into it. It happens on a normal cargo build. Here are the errors I'm seeing:
Compiling rustc-ap-rustc_span v659.0.0
error[E0407]: method `forward_checked` is not a member of trait `std::iter::Step`
--> /Users/cameron/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_span-659.0.0/def_id.rs:11:1
|
11 | / rustc_index::newtype_index! {
12 | | pub struct CrateId {
13 | | ENCODABLE = custom
14 | | }
15 | | }
| |_^ not a member of trait `std::iter::Step`
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0407]: method `backward_checked` is not a member of trait `std::iter::Step`
--> /Users/cameron/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_span-659.0.0/def_id.rs:11:1
|
11 | / rustc_index::newtype_index! {
12 | | pub struct CrateId {
13 | | ENCODABLE = custom
14 | | }
15 | | }
| |_^ not a member of trait `std::iter::Step`
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0407]: method `forward_checked` is not a member of trait `std::iter::Step`
--> /Users/cameron/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_span-659.0.0/def_id.rs:118:1
|
118 | / rustc_index::newtype_index! {
119 | | /// A DefIndex is an index into the hir-map for a crate, identifying a
120 | | /// particular definition. It should really be considered an interned
121 | | /// shorthand for a particular DefPath.
... |
128 | | }
129 | | }
| |_^ not a member of trait `std::iter::Step`
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0407]: method `backward_checked` is not a member of trait `std::iter::Step`
--> /Users/cameron/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_span-659.0.0/def_id.rs:118:1
|
118 | / rustc_index::newtype_index! {
119 | | /// A DefIndex is an index into the hir-map for a crate, identifying a
120 | | /// particular definition. It should really be considered an interned
121 | | /// shorthand for a particular DefPath.
... |
128 | | }
129 | | }
| |_^ not a member of trait `std::iter::Step`
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0407]: method `forward_checked` is not a member of trait `std::iter::Step`
--> /Users/cameron/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_span-659.0.0/symbol.rs:1034:1
|
1034 | / rustc_index::newtype_index! {
1035 | | pub struct SymbolIndex { .. }
1036 | | }
| |_^ not a member of trait `std::iter::Step`
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0407]: method `backward_checked` is not a member of trait `std::iter::Step`
--> /Users/cameron/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_span-659.0.0/symbol.rs:1034:1
|
1034 | / rustc_index::newtype_index! {
1035 | | pub struct SymbolIndex { .. }
1036 | | }
| |_^ not a member of trait `std::iter::Step`
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0199]: implementing the trait `std::iter::Step` is not unsafe
--> /Users/cameron/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_span-659.0.0/def_id.rs:11:1
|
11 | / rustc_index::newtype_index! {
12 | | pub struct CrateId {
13 | | ENCODABLE = custom
14 | | }
15 | | }
| |_^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0199]: implementing the trait `std::iter::Step` is not unsafe
--> /Users/cameron/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_span-659.0.0/def_id.rs:118:1
|
118 | / rustc_index::newtype_index! {
119 | | /// A DefIndex is an index into the hir-map for a crate, identifying a
120 | | /// particular definition. It should really be considered an interned
121 | | /// shorthand for a particular DefPath.
... |
128 | | }
129 | | }
| |_^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0199]: implementing the trait `std::iter::Step` is not unsafe
--> /Users/cameron/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_span-659.0.0/symbol.rs:1034:1
|
1034 | / rustc_index::newtype_index! {
1035 | | pub struct SymbolIndex { .. }
1036 | | }
| |_^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 9 previous errors
@ctaggart - which nightly are you using? Based on the output it seems like you're probably using an older one (IIRC you'll need rustc 1.45.0-nightly (d79f1bd31 2020-05-17) if not newer)
Activity
CAD97 commentedon May 15, 2020
This is probably rustfmt's use of librustc_index, which implements the step trait. I don't see any direct usage that would cause the breakage.
CAD97 commentedon May 15, 2020
rustfmt was already broken on the latest rustc-ap version, so I'm not exactly sure why my PR is implicated rather than #71555.
topecongiro commentedon May 16, 2020
I believe the breakage is due to #72001, which requires us to set the env var
CFG_RELEASE_CHANNELduring the build.cuviper commentedon May 20, 2020
FWIW, I just tried on commit 0271499, which is the parent to #69659's merge commit ed084b0, and rustfmt built fine. The errors I see later are in
rustc-ap-rustc_indexandrustc-ap-rustc_span, lots of "... is not a member of traitstd::iter::Step".Could well be that the other mentioned PRs would also cause problems though.
CAD97 commentedon May 20, 2020
@cuviper we've already patched rustfmt for the other problems (rust-lang/rustfmt#4184, rust-lang/rustfmt#4188), what remains is just propagating changes IIUC.
ctaggart commentedon May 23, 2020
I just tried updating to latest rustfmt from master.
I'm not sure if it because I'm targetingIt happens on a normalwasm32-unkonwn-unknown, but will look into it.cargo build. Here are the errors I'm seeing:calebcartwright commentedon May 24, 2020
@ctaggart - which nightly are you using? Based on the output it seems like you're probably using an older one (IIRC you'll need
rustc 1.45.0-nightly (d79f1bd31 2020-05-17)if not newer)ctaggart commentedon May 24, 2020
@calebcartwright, yes, that was my issue. It works now on
rustc 1.45.0-nightly (8970e8bcf 2020-05-23).It was not working on:
Oh, I see. Looks like rustfmt-preview has not build for a while:
Auto merge of rust-lang#72671 - flip1995:clippyup, r=Xanewok