Skip to content

Commit 7afb44a

Browse files
committed
Rehome tests/ui/issues/ tests [5/?]
1 parent 2886b36 commit 7afb44a

File tree

83 files changed

+134
-118
lines changed

Some content is hidden

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

83 files changed

+134
-118
lines changed

tests/ui/issues/issue-8498.rs renamed to tests/ui/array-slice-vec/matching-on-vector-slice-option-8498.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/8498
12
//@ run-pass
23

34
pub fn main() {

tests/ui/issues/issue-7784.rs renamed to tests/ui/array-slice-vec/pattern-matching-fixed-length-vectors-7784.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/7784
12
//@ run-pass
23

34
use std::ops::Add;

tests/ui/issues/issue-78622.rs renamed to tests/ui/associated-consts/ambiguous-associated-type-error-78622.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/78622
12
#![crate_type = "lib"]
23

34
struct S;

tests/ui/issues/issue-78622.stderr renamed to tests/ui/associated-consts/ambiguous-associated-type-error-78622.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0223]: ambiguous associated type
2-
--> $DIR/issue-78622.rs:5:5
2+
--> $DIR/ambiguous-associated-type-error-78622.rs:6:5
33
|
44
LL | S::A::<f> {}
55
| ^^^^

tests/ui/issues/issue-78957.rs renamed to tests/ui/attributes/invalid-attributes-on-const-params-78957.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/78957
12
#![deny(unused_attributes)]
23

34
use std::marker::PhantomData;

tests/ui/issues/issue-78957.stderr renamed to tests/ui/attributes/invalid-attributes-on-const-params-78957.stderr

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,64 @@
11
error[E0518]: attribute should be applied to function or closure
2-
--> $DIR/issue-78957.rs:5:16
2+
--> $DIR/invalid-attributes-on-const-params-78957.rs:6:16
33
|
44
LL | pub struct Foo<#[inline] const N: usize>;
55
| ^^^^^^^^^ -------------- not a function or closure
66

77
error: attribute should be applied to a function definition
8-
--> $DIR/issue-78957.rs:7:16
8+
--> $DIR/invalid-attributes-on-const-params-78957.rs:8:16
99
|
1010
LL | pub struct Bar<#[cold] const N: usize>;
1111
| ^^^^^^^ -------------- not a function definition
1212
|
1313
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
1414
note: the lint level is defined here
15-
--> $DIR/issue-78957.rs:1:9
15+
--> $DIR/invalid-attributes-on-const-params-78957.rs:2:9
1616
|
1717
LL | #![deny(unused_attributes)]
1818
| ^^^^^^^^^^^^^^^^^
1919

2020
error[E0517]: attribute should be applied to a struct, enum, or union
21-
--> $DIR/issue-78957.rs:10:23
21+
--> $DIR/invalid-attributes-on-const-params-78957.rs:11:23
2222
|
2323
LL | pub struct Baz<#[repr(C)] const N: usize>;
2424
| ^ -------------- not a struct, enum, or union
2525

2626
error[E0518]: attribute should be applied to function or closure
27-
--> $DIR/issue-78957.rs:13:17
27+
--> $DIR/invalid-attributes-on-const-params-78957.rs:14:17
2828
|
2929
LL | pub struct Foo2<#[inline] 'a>(PhantomData<&'a ()>);
3030
| ^^^^^^^^^ -- not a function or closure
3131

3232
error: attribute should be applied to a function definition
33-
--> $DIR/issue-78957.rs:15:17
33+
--> $DIR/invalid-attributes-on-const-params-78957.rs:16:17
3434
|
3535
LL | pub struct Bar2<#[cold] 'a>(PhantomData<&'a ()>);
3636
| ^^^^^^^ -- not a function definition
3737
|
3838
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
3939

4040
error[E0517]: attribute should be applied to a struct, enum, or union
41-
--> $DIR/issue-78957.rs:18:24
41+
--> $DIR/invalid-attributes-on-const-params-78957.rs:19:24
4242
|
4343
LL | pub struct Baz2<#[repr(C)] 'a>(PhantomData<&'a ()>);
4444
| ^ -- not a struct, enum, or union
4545

4646
error[E0518]: attribute should be applied to function or closure
47-
--> $DIR/issue-78957.rs:21:17
47+
--> $DIR/invalid-attributes-on-const-params-78957.rs:22:17
4848
|
4949
LL | pub struct Foo3<#[inline] T>(PhantomData<T>);
5050
| ^^^^^^^^^ - not a function or closure
5151

5252
error: attribute should be applied to a function definition
53-
--> $DIR/issue-78957.rs:23:17
53+
--> $DIR/invalid-attributes-on-const-params-78957.rs:24:17
5454
|
5555
LL | pub struct Bar3<#[cold] T>(PhantomData<T>);
5656
| ^^^^^^^ - not a function definition
5757
|
5858
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
5959

6060
error[E0517]: attribute should be applied to a struct, enum, or union
61-
--> $DIR/issue-78957.rs:26:24
61+
--> $DIR/invalid-attributes-on-const-params-78957.rs:27:24
6262
|
6363
LL | pub struct Baz3<#[repr(C)] T>(PhantomData<T>);
6464
| ^ - not a struct, enum, or union

tests/ui/issues/issue-77218/issue-77218.fixed renamed to tests/ui/binding/invalid-assignment-in-while-loop-77218.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/77218
12
//@ run-rustfix
23
fn main() {
34
let value = [7u8];

tests/ui/issues/issue-77218/issue-77218.rs renamed to tests/ui/binding/invalid-assignment-in-while-loop-77218.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/77218
12
//@ run-rustfix
23
fn main() {
34
let value = [7u8];

tests/ui/issues/issue-77218/issue-77218.stderr renamed to tests/ui/binding/invalid-assignment-in-while-loop-77218.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0070]: invalid left-hand side of assignment
2-
--> $DIR/issue-77218.rs:4:19
2+
--> $DIR/invalid-assignment-in-while-loop-77218.rs:5:19
33
|
44
LL | while Some(0) = value.get(0) {}
55
| - ^

tests/ui/issues/issue-78192.rs renamed to tests/ui/borrowck/incorrect-use-after-storage-end-78192.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/78192
12
//@ run-pass
23

34
#![allow(unused_assignments)]

0 commit comments

Comments
 (0)