Skip to content

Commit 8e8fba1

Browse files
committed
compiletest: Validate pass modes harder
1 parent 6203f68 commit 8e8fba1

File tree

11 files changed

+49
-32
lines changed

11 files changed

+49
-32
lines changed

src/test/incremental/issue-59523-on-implemented-is-not-unused.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// rustc_on_unimplemented, but with this bug we are seeing it fire (on
33
// subsequent runs) if incremental compilation is enabled.
44

5-
// revisions: rpass1 rpass2
5+
// revisions: cfail1 cfail2
66
// compile-pass
77

88
#![feature(on_unimplemented)]

src/test/incremental/issue-59524-layout-scalar-valid-range-is-not-unused.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// seeing it fire (on subsequent runs) if incremental compilation is
44
// enabled.
55

6-
// revisions: rpass1 rpass2
6+
// revisions: cfail1 cfail2
77
// compile-pass
88

99
#![feature(rustc_attrs)]

src/test/run-fail/rfc-1937-termination-trait/termination-trait-for-box-dyn-error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-pass
1+
// error-pattern:returned Box<dyn Error> from main()
22
// failure-status: 1
33

44
use std::error::Error;

src/test/run-fail/rfc-1937-termination-trait/termination-trait-for-result-box-error_err.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-pass
1+
// error-pattern:returned Box<Error> from main()
22
// failure-status: 1
33

44
use std::io::{Error, ErrorKind};

src/test/ui/consts/const-eval/const_transmute.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// compile-pass
21
// run-pass
32

43
#![feature(const_fn_union)]

src/test/ui/consts/const-eval/enum_discr.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// compile-pass
21
// run-pass
32

43
enum Foo {

src/test/ui/expanded-cfg.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// skip-codegen
2-
// compile-pass
1+
// check-pass
32

43
macro_rules! mac {
54
{} => {
@@ -19,5 +18,4 @@ macro_rules! mac {
1918

2019
mac! {}
2120

22-
2321
fn main() {}

src/test/ui/issues/issue-22603.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// skip-codegen
2-
// compile-pass
1+
// check-pass
2+
33
#![feature(unboxed_closures, fn_traits)]
44
struct Foo;
55

src/test/ui/issues/issue-37515.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
// skip-codegen
2-
// compile-pass
1+
// check-pass
2+
33
#![warn(unused)]
44

55
type Z = dyn for<'x> Send;
66
//~^ WARN type alias is never used
77

8-
9-
fn main() {
10-
}
8+
fn main() {}
Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
1-
// compile-pass
2-
3-
#![deny(single_use_lifetimes)]
4-
#![allow(dead_code)]
5-
#![allow(unused_variables)]
6-
71
// Test that we DO NOT warn when lifetime name is used only
82
// once in a fn return type -- using `'_` is not legal there,
93
// as it must refer back to an argument.
104
//
115
// (Normally, using `'static` would be preferred, but there are
126
// times when that is not what you want.)
13-
//
14-
// run-pass
7+
8+
// compile-pass
9+
10+
#![deny(single_use_lifetimes)]
1511

1612
fn b<'a>() -> &'a u32 { // OK: used only in return type
1713
&22
1814
}
1915

20-
fn main() { }
16+
fn main() {}

0 commit comments

Comments
 (0)