Skip to content

Commit 81da9b4

Browse files
committed
Add run-make test testing flag stability
1 parent ab41931 commit 81da9b4

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/doc/unstable-book/src/compiler-flags/force-warns.md

+1-1
Original file line numberDiff line numberDiff 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
1414
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
1616
// function is not used, because dead code is being allowed
1717
1818
fn main() {}

src/test/run-make/unstable-flag-required/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
all:
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 numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
error: the `-Z unstable-options` flag must also be passed to enable the flag `--force-warns=lints`
2+

0 commit comments

Comments
 (0)