Skip to content

Commit 46d98da

Browse files
committed
Relocate issues/ UI tests to appropriate subdirectories
1 parent 5b150d2 commit 46d98da

File tree

33 files changed

+43
-23
lines changed

33 files changed

+43
-23
lines changed

tests/ui/issues/issue-52126-assign-op-invariance.rs renamed to tests/ui/borrowck/add-assign-variance-borrow-checker-problem-52126-.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@ pub fn panics() {
4747
// line gets dropped here but references are kept in acc.map
4848
}
4949
}
50+
// https://github.com/rust-lang/rust/issues/52126-

tests/ui/issues/issue-52126-assign-op-invariance.stderr renamed to tests/ui/borrowck/add-assign-variance-borrow-checker-problem-52126-.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0597]: `line` does not live long enough
2-
--> $DIR/issue-52126-assign-op-invariance.rs:34:28
2+
--> $DIR/add-assign-variance-borrow-checker-problem-52126-.rs:34:28
33
|
44
LL | for line in vec!["123456789".to_string(), "12345678".to_string()] {
55
| ---- binding `line` declared here

tests/ui/issues/issue-52262.rs renamed to tests/ui/borrowck/move-out-of-shared-reference-in-match-52262.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ impl std::fmt::Display for MyError {
2222
fn main() {
2323
println!("Hello, world!");
2424
}
25+
// https://github.com/rust-lang/rust/issues/52262

tests/ui/issues/issue-52262.stderr renamed to tests/ui/borrowck/move-out-of-shared-reference-in-match-52262.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0507]: cannot move out of `*key` which is behind a shared reference
2-
--> $DIR/issue-52262.rs:15:35
2+
--> $DIR/move-out-of-shared-reference-in-match-52262.rs:15:35
33
|
44
LL | String::from_utf8(*key).unwrap()
55
| ^^^^ move occurs because `*key` has type `Vec<u8>`, which does not implement the `Copy` trait

tests/ui/issues/issue-52049.rs renamed to tests/ui/borrowck/temporary-value-dropped-while-borrowed-52049.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ fn main() {
66
foo(&unpromotable(5u32));
77
}
88
//~^^ ERROR temporary value dropped while borrowed
9+
// https://github.com/rust-lang/rust/issues/52049

tests/ui/issues/issue-52049.stderr renamed to tests/ui/borrowck/temporary-value-dropped-while-borrowed-52049.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0716]: temporary value dropped while borrowed
2-
--> $DIR/issue-52049.rs:6:10
2+
--> $DIR/temporary-value-dropped-while-borrowed-52049.rs:6:10
33
|
44
LL | foo(&unpromotable(5u32));
55
| -----^^^^^^^^^^^^^^^^^^-- temporary value is freed at the end of this statement

tests/ui/issues/issue-51714.rs renamed to tests/ui/closure_context/closure-type-inference-error-with-return-51714.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ fn main() {
1919
//~^ ERROR: return statement outside of function body [E0572]
2020
//~| NOTE: the return is part of this body...
2121
}
22+
// https://github.com/rust-lang/rust/issues/51714

tests/ui/issues/issue-51714.stderr renamed to tests/ui/closure_context/closure-type-inference-error-with-return-51714.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0572]: return statement outside of function body
2-
--> $DIR/issue-51714.rs:6:13
2+
--> $DIR/closure-type-inference-error-with-return-51714.rs:6:13
33
|
44
LL | / fn main() {
55
... |
@@ -10,7 +10,7 @@ LL | | }
1010
| |_- ...not the enclosing function body
1111

1212
error[E0572]: return statement outside of function body
13-
--> $DIR/issue-51714.rs:10:10
13+
--> $DIR/closure-type-inference-error-with-return-51714.rs:10:10
1414
|
1515
LL | / fn main() {
1616
... |
@@ -21,7 +21,7 @@ LL | | }
2121
| |_- ...not the enclosing function body
2222

2323
error[E0572]: return statement outside of function body
24-
--> $DIR/issue-51714.rs:14:10
24+
--> $DIR/closure-type-inference-error-with-return-51714.rs:14:10
2525
|
2626
LL | / fn main() {
2727
... |
@@ -32,7 +32,7 @@ LL | | }
3232
| |_- ...not the enclosing function body
3333

3434
error[E0572]: return statement outside of function body
35-
--> $DIR/issue-51714.rs:18:10
35+
--> $DIR/closure-type-inference-error-with-return-51714.rs:18:10
3636
|
3737
LL | / fn main() {
3838
... |

tests/ui/issues/issue-53275.rs renamed to tests/ui/consts/array-index-out-of-bounds-in-const-context-53275.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ struct S(u8);
77
pub fn ice() {
88
S([][0]);
99
}
10+
// https://github.com/rust-lang/rust/issues/53275
File renamed without changes.

0 commit comments

Comments
 (0)