diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-04-12 17:30:52 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-04-12 17:31:49 -0700 |
| commit | 8a7fd4a04fa9683b149eb1db973d4e2c0f3d05cc (patch) | |
| tree | ab41bc0cb3b9d8df784f0ae108a73bcb17328333 /src/rustc/driver/rustc.rs | |
| parent | 7b3cb05311ef7d671b0bf92b041112ef141dc188 (diff) | |
| download | rust-8a7fd4a04fa9683b149eb1db973d4e2c0f3d05cc.tar.gz rust-8a7fd4a04fa9683b149eb1db973d4e2c0f3d05cc.zip | |
Support general warnings and errors in lint pass via flags and attrs. Close #1543.
Diffstat (limited to 'src/rustc/driver/rustc.rs')
| -rw-r--r-- | src/rustc/driver/rustc.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rustc/driver/rustc.rs b/src/rustc/driver/rustc.rs index dc3386acb73..0654691242a 100644 --- a/src/rustc/driver/rustc.rs +++ b/src/rustc/driver/rustc.rs @@ -39,7 +39,6 @@ Options: --lib Compile a library crate --ls List the symbols defined by a compiled library crate --no-asm-comments Do not add comments into the assembly source - --no-lint-ctypes Suppress warnings for possibly incorrect ctype usage --no-trans Run all passes except translation; no output --no-verify Suppress LLVM verification step (slight speedup) (see http://llvm.org/docs/Passes.html for detail) @@ -65,13 +64,15 @@ Options: (see http://sources.redhat.com/autobook/autobook/ autobook_17.html for detail) + -W <foo> enable warning <foo> + -W no-<foo> disable warning <foo> + -W err-<foo> enable warning <foo> as an error + --time-passes Time the individual phases of the compiler --time-llvm-passes Time the individual phases of the LLVM backend --count-llvm-insns Count and categorize generated LLVM instructions - -v --version Print version info and exit - --warn-unused-imports - Warn about unnecessary imports + -v --version Print version info and exit "); } |
