Skip to content

Commit e2dd45c

Browse files
committed
Move more tests from run-fail to ui
1 parent 2012e83 commit e2dd45c

25 files changed

+23
-2
lines changed

src/test/ui/cfg/meta-revision-bad.rs renamed to src/test/run-fail/meta-revision-bad.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// patterns, the test fails.
33

44
// revisions: foo bar
5-
// run-fail
65
// should-fail
76
//[foo] error-pattern:bar
87
//[bar] error-pattern:foo

src/test/ui/cfg/meta-revision-ok.rs renamed to src/test/run-fail/meta-revision-ok.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// patterns, the test passes. See all `meta-revision-bad.rs`.
33

44
// revisions: foo bar
5-
// run-fail
65
//[foo] error-pattern:foo
76
//[bar] error-pattern:bar
87

src/test/run-fail/while-body-panics.rs renamed to src/test/ui/for-loop-while/while-body-panics.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![allow(while_true)]
22

3+
// run-fail
34
// error-pattern:quux
45
fn main() {
56
let _x: isize = {

src/test/run-fail/while-panic.rs renamed to src/test/ui/for-loop-while/while-panic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![allow(while_true)]
22

3+
// run-fail
34
// error-pattern:giraffe
45
fn main() {
56
panic!({

src/test/run-fail/match-bot-panic.rs renamed to src/test/ui/match/match-bot-panic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:explicit panic
23

34
#![allow(unreachable_code)]

src/test/run-fail/match-disc-bot.rs renamed to src/test/ui/match/match-disc-bot.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:quux
23
fn f() -> ! {
34
panic!("quux")

src/test/run-fail/match-wildcards.rs renamed to src/test/ui/match/match-wildcards.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:squirrelcupcake
23
fn cmp() -> isize {
34
match (Some('a'), None::<char>) {

src/test/run-fail/overflowing-add.rs renamed to src/test/ui/numbers-arithmetic/overflowing-add.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:thread 'main' panicked at 'attempt to add with overflow'
23
// compile-flags: -C debug-assertions
34

src/test/run-fail/overflowing-lsh-1.rs renamed to src/test/ui/numbers-arithmetic/overflowing-lsh-1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:thread 'main' panicked at 'attempt to shift left with overflow'
23
// compile-flags: -C debug-assertions
34

src/test/run-fail/overflowing-lsh-2.rs renamed to src/test/ui/numbers-arithmetic/overflowing-lsh-2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:thread 'main' panicked at 'attempt to shift left with overflow'
23
// compile-flags: -C debug-assertions
34

src/test/run-fail/overflowing-lsh-3.rs renamed to src/test/ui/numbers-arithmetic/overflowing-lsh-3.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:thread 'main' panicked at 'attempt to shift left with overflow'
23
// compile-flags: -C debug-assertions
34

src/test/run-fail/overflowing-lsh-4.rs renamed to src/test/ui/numbers-arithmetic/overflowing-lsh-4.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:thread 'main' panicked at 'attempt to shift left with overflow'
23
// compile-flags: -C debug-assertions
34

src/test/run-fail/overflowing-mul.rs renamed to src/test/ui/numbers-arithmetic/overflowing-mul.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:thread 'main' panicked at 'attempt to multiply with overflow'
23
// compile-flags: -C debug-assertions
34

src/test/run-fail/overflowing-neg.rs renamed to src/test/ui/numbers-arithmetic/overflowing-neg.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:thread 'main' panicked at 'attempt to negate with overflow'
23
// compile-flags: -C debug-assertions
34

src/test/run-fail/overflowing-pow-signed.rs renamed to src/test/ui/numbers-arithmetic/overflowing-pow-signed.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:thread 'main' panicked at 'attempt to multiply with overflow'
23
// compile-flags: -C debug-assertions
34

src/test/run-fail/overflowing-pow-unsigned.rs renamed to src/test/ui/numbers-arithmetic/overflowing-pow-unsigned.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:thread 'main' panicked at 'attempt to multiply with overflow'
23
// compile-flags: -C debug-assertions
34

src/test/run-fail/overflowing-rsh-1.rs renamed to src/test/ui/numbers-arithmetic/overflowing-rsh-1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:thread 'main' panicked at 'attempt to shift right with overflow'
23
// compile-flags: -C debug-assertions
34

src/test/run-fail/overflowing-rsh-2.rs renamed to src/test/ui/numbers-arithmetic/overflowing-rsh-2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:thread 'main' panicked at 'attempt to shift right with overflow'
23
// compile-flags: -C debug-assertions
34

src/test/run-fail/overflowing-rsh-3.rs renamed to src/test/ui/numbers-arithmetic/overflowing-rsh-3.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:thread 'main' panicked at 'attempt to shift right with overflow'
23
// compile-flags: -C debug-assertions
34

src/test/run-fail/overflowing-rsh-4.rs renamed to src/test/ui/numbers-arithmetic/overflowing-rsh-4.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:thread 'main' panicked at 'attempt to shift right with overflow'
23
// compile-flags: -C debug-assertions
34

src/test/run-fail/overflowing-rsh-5.rs renamed to src/test/ui/numbers-arithmetic/overflowing-rsh-5.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:thread 'main' panicked at 'attempt to shift right with overflow'
23
// compile-flags: -C debug-assertions
34

src/test/run-fail/overflowing-rsh-6.rs renamed to src/test/ui/numbers-arithmetic/overflowing-rsh-6.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:thread 'main' panicked at 'attempt to shift right with overflow'
23
// compile-flags: -C debug-assertions
34

src/test/run-fail/overflowing-sub.rs renamed to src/test/ui/numbers-arithmetic/overflowing-sub.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:thread 'main' panicked at 'attempt to subtract with overflow'
23
// compile-flags: -C debug-assertions
34

src/test/run-fail/promoted_overflow.rs renamed to src/test/ui/numbers-arithmetic/promoted_overflow.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![allow(const_err)]
22

3+
// run-fail
34
// error-pattern: overflow
45
// compile-flags: -C overflow-checks=yes
56

src/test/run-fail/task-spawn-barefn.rs renamed to src/test/ui/threads-sendsync/task-spawn-barefn.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// run-fail
12
// error-pattern:Ensure that the child thread runs by panicking
23
// ignore-emscripten Needs threads.
34

0 commit comments

Comments
 (0)