Skip to content

Commit 41d7bd6

Browse files
authored
Unrolled build for #144983
Rollup merge of #144983 - Oneirical:uncountable-integer, r=jieyouxu Rehome 37 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` Part of #133895 Methodology: 1. Refer to the previously written `tests/ui/SUMMARY.md` 2. Find an appropriate category for the test, using the original issue thread and the test contents. 3. Add the issue URL at the bottom (not at the top, as that would mess up stderr line numbers) 4. Rename the tests to make their purpose clearer Inspired by the methodology that ``@Kivooeo`` was using. r? ``@jieyouxu``
2 parents 8c32e31 + 75e0263 commit 41d7bd6

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,61 +1,61 @@
11
error: `#[inline]` attribute cannot be used on function params
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
| ^^^^^^^^^
66
|
77
= help: `#[inline]` can only be applied to functions
88

99
error: `#[inline]` attribute cannot be used on function params
10-
--> $DIR/issue-78957.rs:13:17
10+
--> $DIR/invalid-attributes-on-const-params-78957.rs:14:17
1111
|
1212
LL | pub struct Foo2<#[inline] 'a>(PhantomData<&'a ()>);
1313
| ^^^^^^^^^
1414
|
1515
= help: `#[inline]` can only be applied to functions
1616

1717
error: `#[inline]` attribute cannot be used on function params
18-
--> $DIR/issue-78957.rs:21:17
18+
--> $DIR/invalid-attributes-on-const-params-78957.rs:22:17
1919
|
2020
LL | pub struct Foo3<#[inline] T>(PhantomData<T>);
2121
| ^^^^^^^^^
2222
|
2323
= help: `#[inline]` can only be applied to functions
2424

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

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

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

4343
error: `#[cold]` attribute cannot be used on function params
44-
--> $DIR/issue-78957.rs:7:16
44+
--> $DIR/invalid-attributes-on-const-params-78957.rs:8:16
4545
|
4646
LL | pub struct Bar<#[cold] const N: usize>;
4747
| ^^^^^^^
4848
|
4949
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
5050
= help: `#[cold]` can only be applied to functions
5151
note: the lint level is defined here
52-
--> $DIR/issue-78957.rs:1:9
52+
--> $DIR/invalid-attributes-on-const-params-78957.rs:2:9
5353
|
5454
LL | #![deny(unused_attributes)]
5555
| ^^^^^^^^^^^^^^^^^
5656

5757
error: `#[cold]` attribute cannot be used on function params
58-
--> $DIR/issue-78957.rs:15:17
58+
--> $DIR/invalid-attributes-on-const-params-78957.rs:16:17
5959
|
6060
LL | pub struct Bar2<#[cold] 'a>(PhantomData<&'a ()>);
6161
| ^^^^^^^
@@ -64,7 +64,7 @@ LL | pub struct Bar2<#[cold] 'a>(PhantomData<&'a ()>);
6464
= help: `#[cold]` can only be applied to functions
6565

6666
error: `#[cold]` attribute cannot be used on function params
67-
--> $DIR/issue-78957.rs:23:17
67+
--> $DIR/invalid-attributes-on-const-params-78957.rs:24:17
6868
|
6969
LL | pub struct Bar3<#[cold] T>(PhantomData<T>);
7070
| ^^^^^^^

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)