File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed
doc/unstable-book/src/compiler-flags
test/run-make/unstable-flag-required Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ This feature allows you to cause any lint to produce a warning even if the lint
1212#![allow(dead_code)]
1313
1414fn dead_function() {}
15- // This would normally not produce a warning even though the
15+ // This would normally not produce a warning even though the
1616// function is not used, because dead code is being allowed
1717
1818fn main() {}
Original file line number Diff line number Diff line change 22
33all :
44 $(RUSTDOC ) --output-format=json x.html 2>&1 | diff - output-format-json.stderr
5+ $(RUSTC ) --force-warns dead_code x.rs 2>&1 | diff - force-warns.stderr
Original file line number Diff line number Diff line change 1+ error: the `-Z unstable-options` flag must also be passed to enable the flag `--force-warns=lints`
2+
You can’t perform that action at this time.
0 commit comments