Skip to content

Commit 76d9b30

Browse files
committed
Add must-compile-successfully comment to appropriate ui tests.
1 parent 81b8db2 commit 76d9b30

33 files changed

+44
-0
lines changed

src/test/ui/check_match/issue-43253.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// must-compile-successfully
12+
1113
#![feature(exclusive_range_pattern)]
1214
#![warn(unreachable_patterns)]
1315

src/test/ui/codemap_tests/unicode_3.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// must-compile-successfully
12+
1113
fn main() {
1214
let s = "ZͨA͑ͦ͒͋ͤ͑̚L̄͑͋Ĝͨͥ̿͒̽̈́Oͥ͛ͭ!̏"; while true { break; }
1315
println!("{}", s);

src/test/ui/explain.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
// except according to those terms.
1010

1111
// compile-flags: --explain E0591
12+
// must-compile-successfully

src/test/ui/hello_world/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// must-compile-successfully
12+
1113
// Test that compiling hello world succeeds with no output of any kind.
1214

1315
fn main() {

src/test/ui/lint/command-line-lint-group-allow.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// compile-flags: -A bad-style
12+
// must-compile-successfully
1213

1314
fn main() {
1415
let _InappropriateCamelCasing = true;

src/test/ui/lint/command-line-lint-group-warn.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// compile-flags: -W bad-style
12+
// must-compile-successfully
1213

1314
fn main() {
1415
let _InappropriateCamelCasing = true;

src/test/ui/lint/not_found.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// must-compile-successfully
12+
1113
// this tests the `unknown_lint` lint, especially the suggestions
1214

1315
// the suggestion only appears if a lint with the lowercase name exists

src/test/ui/lint/unreachable_pub-pub_crate.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// suggestions to use `crate` given when it is on). When that feature becomes
1515
// stable, this test can be deleted.
1616

17+
// must-compile-successfully
18+
1719
#![feature(macro_vis_matcher)]
1820

1921
#![allow(unused)]

src/test/ui/lint/unreachable_pub.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// must-compile-successfully
12+
1113
#![feature(crate_visibility_modifier)]
1214
#![feature(macro_vis_matcher)]
1315

src/test/ui/lint/unused_parens_json_suggestion.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// compile-flags: --error-format pretty-json -Zunstable-options
12+
// must-compile-successfully
1213

1314
// The output for humans should just highlight the whole span without showing
1415
// the suggested replacement, but we also want to test that suggested

0 commit comments

Comments
 (0)