Skip to content
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

Cannot bootstrap rustfmt in-tree: unknown feature array_value_iter_slice #81787

Closed
rkowalewski opened this issue Feb 5, 2021 · 4 comments
Closed
Labels
C-discussion Category: Discussion or questions that doesn't represent real issues. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@rkowalewski
Copy link

Bootstrapping rust nightly fails when building rustfmt. I suppose this results from merging #80470, where the rustc-ap-rustc_arena crate has been modified (remove some features).

Cargo.lock still uses an old version (v697.0.0). However, it should be v702.0.0.

I build on OpenBSD current. For reference, I attached my build.log.

@jyn514 jyn514 changed the title Cannot bootstrap rust-nightly: unknown feature array_value_iter_slice Cannot bootstrap rustfmt in-tree: unknown feature array_value_iter_slice Feb 5, 2021
@jyn514
Copy link
Member

jyn514 commented Feb 5, 2021

I think this is expected behavior in some sense - rustfmt is maintained in a submodule and breaks occasionally, that's why it's not available on all nightlies. https://forge.rust-lang.org/infra/docs/rustc-ci.html#toolstate-to-support-allowed-failures

@rkowalewski
Copy link
Author

OK, since I am not yet very familiar with the toolchain of Rust. Is there a simple workaround if I build rust nightly in-tree?

@jyn514
Copy link
Member

jyn514 commented Feb 7, 2021

You can exclude rustfmt from being built (--exclude rustfmt or just don't add it to the list of tools in config.toml).

@jyn514 jyn514 added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) C-discussion Category: Discussion or questions that doesn't represent real issues. labels Feb 7, 2021
@rkowalewski
Copy link
Author

Thank you that solved the issue for me. Feel free to close the issue.

@jyn514 jyn514 closed this as completed Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-discussion Category: Discussion or questions that doesn't represent real issues. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

No branches or pull requests

2 participants