Skip to content

Commit 4c6d924

Browse files
committed
Rename some issue-* tests
1 parent 5bc3450 commit 4c6d924

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

tests/ui/typeck/issue-79040.rs renamed to tests/ui/consts/const-item-no-type/dont-suggest-type-error.rs

File renamed without changes.

tests/ui/typeck/issue-79040.stderr renamed to tests/ui/consts/const-item-no-type/dont-suggest-type-error.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error[E0369]: cannot add `{integer}` to `&str`
2-
--> $DIR/issue-79040.rs:2:25
2+
--> $DIR/dont-suggest-type-error.rs:2:25
33
|
44
LL | const FOO = "hello" + 1;
55
| ------- ^ - {integer}
66
| |
77
| &str
88

99
error: missing type for `const` item
10-
--> $DIR/issue-79040.rs:2:14
10+
--> $DIR/dont-suggest-type-error.rs:2:14
1111
|
1212
LL | const FOO = "hello" + 1;
1313
| ^
File renamed without changes.

tests/ui/parser/issues/issue-89574.stderr renamed to tests/ui/consts/const-item-no-type/dtorck-array.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0282]: type annotations needed
2-
--> $DIR/issue-89574.rs:2:25
2+
--> $DIR/dtorck-array.rs:2:25
33
|
44
LL | const EMPTY_ARRAY = [];
55
| ^^ cannot infer type
66

77
error: missing type for `const` item
8-
--> $DIR/issue-89574.rs:2:22
8+
--> $DIR/dtorck-array.rs:2:22
99
|
1010
LL | const EMPTY_ARRAY = [];
1111
| ^
File renamed without changes.

tests/ui/macros/issue-69396-const-no-type-in-macro.stderr renamed to tests/ui/consts/const-item-no-type/in-macro.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0428]: the name `A` is defined multiple times
2-
--> $DIR/issue-69396-const-no-type-in-macro.rs:4:13
2+
--> $DIR/in-macro.rs:4:13
33
|
44
LL | const A = "A".$fn();
55
| ^^^^^^^^^^^^^^^^^^^^ `A` redefined here
@@ -14,7 +14,7 @@ LL | | }
1414
= note: this error originates in the macro `suite` (in Nightly builds, run with -Z macro-backtrace for more info)
1515

1616
error: missing type for `const` item
17-
--> $DIR/issue-69396-const-no-type-in-macro.rs:4:20
17+
--> $DIR/in-macro.rs:4:20
1818
|
1919
LL | const A = "A".$fn();
2020
| ^ help: provide a type for the constant: `: usize`
@@ -28,7 +28,7 @@ LL | | }
2828
= note: this error originates in the macro `suite` (in Nightly builds, run with -Z macro-backtrace for more info)
2929

3030
error[E0121]: missing type for item
31-
--> $DIR/issue-69396-const-no-type-in-macro.rs:4:20
31+
--> $DIR/in-macro.rs:4:20
3232
|
3333
LL | const A = "A".$fn();
3434
| ^ not allowed in type signatures
File renamed without changes.
File renamed without changes.

tests/ui/typeck/issue-100164.stderr renamed to tests/ui/consts/const-item-no-type/with-colon.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: missing type for `const` item
2-
--> $DIR/issue-100164.rs:3:10
2+
--> $DIR/with-colon.rs:3:10
33
|
44
LL | const _A: = 123;
55
| ^ help: provide a type for the constant: `i32`
66

77
error: missing type for `const` item
8-
--> $DIR/issue-100164.rs:7:14
8+
--> $DIR/with-colon.rs:7:14
99
|
1010
LL | const _B: = 123;
1111
| ^ help: provide a type for the constant: `i32`

0 commit comments

Comments
 (0)