Skip to content

Commit f997c37

Browse files
committed
Rehome tests/ui/issues/ tests [5/?]
1 parent 2e2642e commit f997c37

File tree

83 files changed

+130
-114
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

+130
-114
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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
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:8:16
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:2:9
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

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)