Skip to content

Commit f760d75

Browse files
committed
Rehome tests/ui/issues/ tests [4/?]
1 parent 14974e9 commit f760d75

File tree

57 files changed

+107
-39
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+107
-39
lines changed

tests/ui/issues/issue-5754.rs renamed to tests/ui/abi/extern-c-identity-two-doubles-issue-5754.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ extern "C" {
1313
}
1414

1515
pub fn main() {}
16+
17+
// https://github.com/rust-lang/rust/issues/5754

tests/ui/issues/issue-8898.rs renamed to tests/ui/array-slice-vec/fixed-size-arrays-zero-size-types-issue-8898.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ pub fn main() {
1616
assert_repr_eq(slice, "[()]".to_string());
1717
assert_repr_eq(&x[..], "[(), ()]".to_string());
1818
}
19+
20+
// https://github.com/rust-lang/rust/issues/8898

tests/ui/issues/issue-43483.rs renamed to tests/ui/associated-consts/trait-associated-const-usage-issue-43483.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ fn m<M: Mat>() {
1414
}
1515

1616
fn main() {}
17+
18+
// https://github.com/rust-lang/rust/issues/43483

tests/ui/issues/issue-21946.rs renamed to tests/ui/associated-types/recursive-associated-type-overflow-issue-21946.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ impl Foo for FooStruct {
1010
}
1111

1212
fn main() {}
13+
14+
// https://github.com/rust-lang/rust/issues/21946

tests/ui/issues/issue-21946.stderr renamed to tests/ui/associated-types/recursive-associated-type-overflow-issue-21946.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0275]: overflow evaluating the requirement `<FooStruct as Foo>::A == _`
2-
--> $DIR/issue-21946.rs:8:14
2+
--> $DIR/recursive-associated-type-overflow-issue-21946.rs:8:14
33
|
44
LL | type A = <FooStruct as Foo>::A;
55
| ^^^^^^^^^^^^^^^^^^^^^

tests/ui/issues/issue-7061.rs renamed to tests/ui/borrowck/mismatched-pointer-type-in-self-issue-7061.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ impl<'a> BarStruct {
1010
}
1111

1212
fn main() {}
13+
14+
// https://github.com/rust-lang/rust/issues/7061

tests/ui/issues/issue-7061.stderr renamed to tests/ui/borrowck/mismatched-pointer-type-in-self-issue-7061.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0308]: mismatched types
2-
--> $DIR/issue-7061.rs:6:46
2+
--> $DIR/mismatched-pointer-type-in-self-issue-7061.rs:6:46
33
|
44
LL | fn foo(&'a mut self) -> Box<BarStruct> { self }
55
| -------------- ^^^^ expected `Box<BarStruct>`, found `&mut BarStruct`

tests/ui/issues/issue-13665.rs renamed to tests/ui/borrowck/region-checker-map-closure-issue-13665.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ fn foo<'r>() {
1212
fn main() {
1313
foo();
1414
}
15+
16+
// https://github.com/rust-lang/rust/issues/13665

tests/ui/issues/issue-21600.rs renamed to tests/ui/closures/aliasability-violation-with-closure-issue-21600.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ fn main() {
1616
//~| ERROR cannot borrow `x` as mutable, as it is a captured variable in a `Fn` closure
1717
});
1818
}
19+
20+
// https://github.com/rust-lang/rust/issues/21600

tests/ui/issues/issue-21600.stderr renamed to tests/ui/closures/aliasability-violation-with-closure-issue-21600.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0596]: cannot borrow `x` as mutable, as it is a captured variable in a `Fn` closure
2-
--> $DIR/issue-21600.rs:14:20
2+
--> $DIR/aliasability-violation-with-closure-issue-21600.rs:14:20
33
|
44
LL | fn call_it<F>(f: F) where F: Fn() { f(); }
55
| - change this to accept `FnMut` instead of `Fn`
@@ -11,7 +11,7 @@ LL | call_it(|| x.gen_mut());
1111
| expects `Fn` instead of `FnMut`
1212

1313
error[E0596]: cannot borrow `x` as mutable, as it is a captured variable in a `Fn` closure
14-
--> $DIR/issue-21600.rs:14:17
14+
--> $DIR/aliasability-violation-with-closure-issue-21600.rs:14:17
1515
|
1616
LL | fn call_it<F>(f: F) where F: Fn() { f(); }
1717
| - change this to accept `FnMut` instead of `Fn`

0 commit comments

Comments
 (0)