File tree 3 files changed +11
-17
lines changed
tests/run-make/allow-warnings-cmdline-stability
3 files changed +11
-17
lines changed Original file line number Diff line number Diff line change 1
1
run-make/allocator-shim-circular-deps/Makefile
2
2
run-make/allow-non-lint-warnings-cmdline/Makefile
3
- run-make/allow-warnings-cmdline-stability/Makefile
4
3
run-make/archive-duplicate-names/Makefile
5
4
run-make/atomic-lock-free/Makefile
6
5
run-make/bare-outfile/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // Test that `-Awarnings` suppresses warnings for unstable APIs.
2
+
3
+ use run_make_support:: { assert_not_contains, rustc} ;
4
+
5
+ fn main ( ) {
6
+ rustc ( ) . input ( "bar.rs" ) . run ( ) ;
7
+ let output = rustc ( ) . input ( "foo.rs" ) . arg ( "-Awarnings" ) . run ( ) ;
8
+
9
+ assert_not_contains ( & String :: from_utf8 ( output. stdout ) . unwrap ( ) , "warning" ) ;
10
+ assert_not_contains ( & String :: from_utf8 ( output. stderr ) . unwrap ( ) , "warning" ) ;
11
+ }
You can’t perform that action at this time.
0 commit comments