-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
bootstrap: --warnings warn
doesn't apply to bootstrap itself
#76805
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Comments
jyn514
added
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
C-bug
Category: This is a bug.
labels
Sep 16, 2020
x.py doesn't check the warnings flag, but you can set deny-warnings in config.toml to false to patch around this. |
jyn514
changed the title
rustbuild: can't --cap-lints warn with x.py --warnings warn
bootstrap: Feb 3, 2023
--warnings warn
doesn't apply to bootstrap itself
Mentoring instructions: Add a rust/src/bootstrap/bootstrap.py Lines 833 to 842 in 043c634
rust/src/bootstrap/bootstrap.py Lines 778 to 788 in 043c634
|
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
May 31, 2023
Add `--warnings warn` flag to `x.py` So that bootstrap itself can be built with warnings not being treated as errors. Fixes: rust-lang#76805 r? `@jyn514`
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
May 31, 2023
Add `--warnings warn` flag to `x.py` So that bootstrap itself can be built with warnings not being treated as errors. Fixes: rust-lang#76805 r? ``@jyn514``
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Bootstrapping with
RUSTFLAGS="-Wsomething that warns ./x.py check --warnings warn
does not work; a warning inside bootstrap will still abort the compilation process:EDIT: well, putting
--cap-lints warn
intoRUSTFLAGS
works but it seems very unintuitive.The text was updated successfully, but these errors were encountered: