Skip to content

Commit f745cbd

Browse files
authored
Unrolled build for #151866
Rollup merge of #151866 - zedddie:move-tests, r=Kivooeo Reorganizing `tests/ui/issues` 10 tests [4/N] part of #133895 r? Kivooeo
2 parents 905b926 + 086dc02 commit f745cbd

16 files changed

+22
-13
lines changed

tests/ui/issues/issue-31267.rs renamed to tests/ui/associated-consts/associated-const-access.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
//! regression test for <https://github.com/rust-lang/rust/issues/31267>
12
//@ run-pass
2-
// Regression test for issue #31267
33

44

55
struct Foo;

tests/ui/issues/issue-49824.rs renamed to tests/ui/closures/nested-closure-escape-borrow.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! regression test for <https://github.com/rust-lang/rust/issues/49824>
12
fn main() {
23
let mut x = 0;
34
|| {

tests/ui/issues/issue-49824.stderr renamed to tests/ui/closures/nested-closure-escape-borrow.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: captured variable cannot escape `FnMut` closure body
2-
--> $DIR/issue-49824.rs:4:9
2+
--> $DIR/nested-closure-escape-borrow.rs:5:9
33
|
44
LL | let mut x = 0;
55
| ----- variable defined here
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! regression test for <https://github.com/rust-lang/rust/issues/17651>
12
// Test that moves of unsized values within closures are caught
23
// and rejected.
34

tests/ui/issues/issue-17651.stderr renamed to tests/ui/closures/unsized_value_move.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the size for values of type `[{integer}]` cannot be known at compilation time
2-
--> $DIR/issue-17651.rs:5:18
2+
--> $DIR/unsized_value_move.rs:6:18
33
|
44
LL | (|| Box::new(*(&[0][..])))();
55
| -------- ^^^^^^^^^^^ doesn't have a size known at compile-time
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! regression test for <https://github.com/rust-lang/rust/issues/18767>
12
//@ run-pass
23
// Test that regionck uses the right memcat for patterns in for loops
34
// and doesn't ICE.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! regression test for <https://github.com/rust-lang/rust/issues/34569>
12
//@ run-pass
23
//@ compile-flags:-g
34

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
//! regression test for <https://github.com/rust-lang/rust/issues/29740>
12
//@ check-pass
23
#![allow(dead_code)]
3-
// Regression test for #29740. Inefficient MIR matching algorithms
4-
// generated way too much code for this sort of case, leading to OOM.
4+
// Inefficient MIR matching algorithms generated way
5+
// too much code for this sort of case, leading to OOM.
56
#![allow(non_snake_case)]
67

78
pub mod KeyboardEventConstants {

tests/ui/issues/issue-32004.rs renamed to tests/ui/pattern/constructor-type-mismatch.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! regression test for <https://github.com/rust-lang/rust/issues/32004>
12
enum Foo {
23
Bar(i32),
34
Baz

tests/ui/issues/issue-32004.stderr renamed to tests/ui/pattern/constructor-type-mismatch.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0532]: expected unit struct, unit variant or constant, found tuple variant `Foo::Bar`
2-
--> $DIR/issue-32004.rs:10:9
2+
--> $DIR/constructor-type-mismatch.rs:11:9
33
|
44
LL | Bar(i32),
55
| -------- `Foo::Bar` defined here
@@ -20,7 +20,7 @@ LL + Foo::Baz => {}
2020
|
2121

2222
error[E0532]: expected tuple struct or tuple variant, found unit struct `S`
23-
--> $DIR/issue-32004.rs:16:9
23+
--> $DIR/constructor-type-mismatch.rs:17:9
2424
|
2525
LL | struct S;
2626
| --------- `S` defined here

0 commit comments

Comments
 (0)