-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.Category: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Description
Bootstrapping with RUSTFLAGS="-Wsomething that warns ./x.py check --warnings warn
does not work; a warning inside bootstrap will still abort the compilation process:
error: trivial numeric cast: `u32` as `u32`
--> src/bootstrap/lib.rs:156:31
|
156 | libc::setpriority(libc::PRIO_PGRP as _, 0, 10);
| ^^^^^^^^^^^^^^^^^^^^
|
= note: `-D trivial-numeric-casts` implied by `-D warnings`
= help: cast can be replaced by coercion; this might require a temporary variable
error: aborting due to previous error
error: could not compile `bootstrap`.
EDIT: well, putting --cap-lints warn
into RUSTFLAGS
works but it seems very unintuitive.
Metadata
Metadata
Assignees
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.Category: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)