Skip to content

Commit ae16114

Browse files
committed
Rehome tests/ui/issues/ [5/?]
1 parent f760d75 commit ae16114

File tree

45 files changed

+84
-20
lines changed

Some content is hidden

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

45 files changed

+84
-20
lines changed

tests/ui/issues/issue-23442.rs renamed to tests/ui/associated-types/unioned-keys-with-associated-type-issue-23442.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ pub struct UnificationTable<K:UnifyKey> {
2121
pub struct Delegate<K>(PhantomData<K>);
2222

2323
fn main() {}
24+
25+
// https://github.com/rust-lang/rust/issues/23442

tests/ui/issues/issue-91489.rs renamed to tests/ui/autoref-autoderef/auto-deref-on-cow-regression-issue-91489.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,5 @@ fn main() {
3838
// should be found
3939
Cow::Borrowed(&VariantTy {}).as_str()
4040
}
41+
42+
// https://github.com/rust-lang/rust/issues/91489

tests/ui/issues/issue-9725.rs renamed to tests/ui/binding/struct-destructuring-repeated-bindings-issue-9725.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ fn main() {
55
//~^ ERROR: identifier `foo` is bound more than once in the same pattern
66
//~^^ ERROR: field `foo` bound multiple times
77
}
8+
9+
// https://github.com/rust-lang/rust/issues/9725

tests/ui/issues/issue-9725.stderr renamed to tests/ui/binding/struct-destructuring-repeated-bindings-issue-9725.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0416]: identifier `foo` is bound more than once in the same pattern
2-
--> $DIR/issue-9725.rs:4:18
2+
--> $DIR/struct-destructuring-repeated-bindings-issue-9725.rs:4:18
33
|
44
LL | let A { foo, foo } = A { foo: 3 };
55
| ^^^ used in a pattern more than once
66

77
error[E0025]: field `foo` bound multiple times in the pattern
8-
--> $DIR/issue-9725.rs:4:18
8+
--> $DIR/struct-destructuring-repeated-bindings-issue-9725.rs:4:18
99
|
1010
LL | let A { foo, foo } = A { foo: 3 };
1111
| --- ^^^ multiple uses of `foo` in pattern

tests/ui/issues/issue-9942.rs renamed to tests/ui/cast/constant-expression-cast-issue-9942.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
pub fn main() {
44
const S: usize = 23 as usize; [0; S]; ()
55
}
6+
7+
// https://github.com/rust-lang/rust/issues/9942

tests/ui/issues/issue-9129.rs renamed to tests/ui/closures/closure-type-inference-in-context-issue-9129.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ pub fn main() {
2929
let b = Box::new(S) as Box<dyn bomb>;
3030
light_fuse(b);
3131
}
32+
33+
// https://github.com/rust-lang/rust/issues/9129

tests/ui/issues/issue-9951.rs renamed to tests/ui/coercion/trait-object-coercion-distribution-issue-9951.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ fn main() {
1818

1919
let (c, d): (&dyn Bar, &dyn Bar) = (&5, &9);
2020
}
21+
22+
// https://github.com/rust-lang/rust/issues/9951

tests/ui/issues/issue-9951.stderr renamed to tests/ui/coercion/trait-object-coercion-distribution-issue-9951.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning: method `noop` is never used
2-
--> $DIR/issue-9951.rs:6:6
2+
--> $DIR/trait-object-coercion-distribution-issue-9951.rs:6:6
33
|
44
LL | trait Bar {
55
| --- method in this trait

tests/ui/issues/issue-98299.rs renamed to tests/ui/const-generics/try-from-with-const-genericsrs-issue-98299.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ impl<const N: usize> TryFrom<()> for SmallCString<N> {
1818
}
1919

2020
fn main() {}
21+
22+
// https://github.com/rust-lang/rust/issues/98299

tests/ui/issues/issue-98299.stderr renamed to tests/ui/const-generics/try-from-with-const-genericsrs-issue-98299.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error[E0284]: type annotations needed for `SmallCString<_>`
2-
--> $DIR/issue-98299.rs:4:36
2+
--> $DIR/try-from-with-const-genericsrs-issue-98299.rs:4:36
33
|
44
LL | SmallCString::try_from(p).map(|cstr| cstr);
55
| ------------ ^^^^
66
| |
77
| type must be known at this point
88
|
99
note: required by a const generic parameter in `SmallCString`
10-
--> $DIR/issue-98299.rs:10:25
10+
--> $DIR/try-from-with-const-genericsrs-issue-98299.rs:10:25
1111
|
1212
LL | pub struct SmallCString<const N: usize> {}
1313
| ^^^^^^^^^^^^^^ required by this const generic parameter in `SmallCString`
@@ -17,15 +17,15 @@ LL | SmallCString::try_from(p).map(|cstr: SmallCString<N>| cstr);
1717
| +++++++++++++++++
1818

1919
error[E0284]: type annotations needed for `SmallCString<_>`
20-
--> $DIR/issue-98299.rs:4:36
20+
--> $DIR/try-from-with-const-genericsrs-issue-98299.rs:4:36
2121
|
2222
LL | SmallCString::try_from(p).map(|cstr| cstr);
2323
| ------------ ^^^^
2424
| |
2525
| type must be known at this point
2626
|
2727
note: required for `SmallCString<_>` to implement `TryFrom<()>`
28-
--> $DIR/issue-98299.rs:12:22
28+
--> $DIR/try-from-with-const-genericsrs-issue-98299.rs:12:22
2929
|
3030
LL | impl<const N: usize> TryFrom<()> for SmallCString<N> {
3131
| -------------- ^^^^^^^^^^^ ^^^^^^^^^^^^^^^
@@ -37,15 +37,15 @@ LL | SmallCString::try_from(p).map(|cstr: SmallCString<N>| cstr);
3737
| +++++++++++++++++
3838

3939
error[E0284]: type annotations needed for `SmallCString<_>`
40-
--> $DIR/issue-98299.rs:4:36
40+
--> $DIR/try-from-with-const-genericsrs-issue-98299.rs:4:36
4141
|
4242
LL | SmallCString::try_from(p).map(|cstr| cstr);
4343
| ------------------------- ^^^^
4444
| |
4545
| type must be known at this point
4646
|
4747
note: required for `SmallCString<_>` to implement `TryFrom<()>`
48-
--> $DIR/issue-98299.rs:12:22
48+
--> $DIR/try-from-with-const-genericsrs-issue-98299.rs:12:22
4949
|
5050
LL | impl<const N: usize> TryFrom<()> for SmallCString<N> {
5151
| -------------- ^^^^^^^^^^^ ^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)