Skip to content

Commit

Permalink
Add run-make test testing flag stability
Browse files Browse the repository at this point in the history
  • Loading branch information
rylev committed Jun 3, 2021
1 parent ab41931 commit 81da9b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/unstable-book/src/compiler-flags/force-warns.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This feature allows you to cause any lint to produce a warning even if the lint
#![allow(dead_code)]
fn dead_function() {}
// This would normally not produce a warning even though the
// This would normally not produce a warning even though the
// function is not used, because dead code is being allowed
fn main() {}
Expand Down
1 change: 1 addition & 0 deletions src/test/run-make/unstable-flag-required/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

all:
$(RUSTDOC) --output-format=json x.html 2>&1 | diff - output-format-json.stderr
$(RUSTC) --force-warns dead_code x.rs 2>&1 | diff - force-warns.stderr
2 changes: 2 additions & 0 deletions src/test/run-make/unstable-flag-required/force-warns.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
error: the `-Z unstable-options` flag must also be passed to enable the flag `--force-warns=lints`

0 comments on commit 81da9b4

Please sign in to comment.