File tree 3 files changed +4
-1
lines changed
doc/unstable-book/src/compiler-flags
test/run-make/unstable-flag-required
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
12
12
#![allow(dead_code)]
13
13
14
14
fn dead_function() {}
15
- // This would normally not produce a warning even though the
15
+ // This would normally not produce a warning even though the
16
16
// function is not used, because dead code is being allowed
17
17
18
18
fn main() {}
Original file line number Diff line number Diff line change 2
2
3
3
all :
4
4
$(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