mozilla/rust — pull request #2453 by bstrie (2012-05-27 00:02:02+00:00)
Title: New compiler flags: -W all -W no-all -W err-all

Use `RUST_LOG=rustc::driver=2` to see the effect of the new options.

When `rustc` is invoked with `-W all`, it sets the lint flags equal to the keys of the master lint flags hashtable. As per the convention of the individual lint flags, using `-W no-all` will do the same, but prepends each lint flag with `no-`, thereby disabling it. Using `-W err-all` prepends all lint flags with `err-` to abort compilation upon a lint warning.

Here's the test file I used:

```
use std;
import std::bitv; // unused-import warning

fn main() {
while true { // while-true warning
io::println("hello");
log(error, "world"); // old-vecs warning
#error("%?", "again!"); // lots of old-vecs warnings
}
}
```