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.
Bootstrapping with
RUSTFLAGS="-Wsomething that warns ./x.py check --warnings warndoes not work; a warning inside bootstrap will still abort the compilation process:EDIT: well, putting
--cap-lints warnintoRUSTFLAGSworks but it seems very unintuitive.