Skip to content

Commit 6b48664

Browse files
committed
Rehome tests/ui/issues/ tests [2/?]
1 parent 4b596bb commit 6b48664

File tree

34 files changed

+55
-37
lines changed

34 files changed

+55
-37
lines changed

tests/ui/issues/issue-12909.rs renamed to tests/ui/array-slice-vec/collection-type-copy-behavior-12909.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/12909
12
//@ run-pass
23
#![allow(unused_variables)]
34

tests/ui/issues/issue-26095.rs renamed to tests/ui/associated-consts/constant-trait-item-reference-selection-26095.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
// https://github.com/rust-lang/rust/issues/26095
12
//@ check-pass
23
#![allow(dead_code)]
34
#![allow(non_upper_case_globals)]
45

5-
66
trait HasNumber<T> {
77
const Number: usize;
88
}

tests/ui/issues/issue-54044.rs renamed to tests/ui/attributes/cold-attribute-application-54044.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/54044
12
#![deny(unused_attributes)] //~ NOTE lint level is defined here
23

34
#[cold]

tests/ui/issues/issue-54044.stderr renamed to tests/ui/attributes/cold-attribute-application-54044.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: attribute should be applied to a function definition
2-
--> $DIR/issue-54044.rs:3:1
2+
--> $DIR/cold-attribute-application-54044.rs:4:1
33
|
44
LL | #[cold]
55
| ^^^^^^^
@@ -9,13 +9,13 @@ LL | struct Foo;
99
|
1010
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
1111
note: the lint level is defined here
12-
--> $DIR/issue-54044.rs:1:9
12+
--> $DIR/cold-attribute-application-54044.rs:2:9
1313
|
1414
LL | #![deny(unused_attributes)]
1515
| ^^^^^^^^^^^^^^^^^
1616

1717
error: attribute should be applied to a function definition
18-
--> $DIR/issue-54044.rs:9:5
18+
--> $DIR/cold-attribute-application-54044.rs:10:5
1919
|
2020
LL | #[cold]
2121
| ^^^^^^^

tests/ui/issues/issue-46471-1.rs renamed to tests/ui/borrowck/borrow-checker-lifetime-error-464711.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/464711
12
fn main() {
23
let y = {
34
let mut z = 0;

tests/ui/issues/issue-46471-1.stderr renamed to tests/ui/borrowck/borrow-checker-lifetime-error-464711.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0597]: `z` does not live long enough
2-
--> $DIR/issue-46471-1.rs:4:9
2+
--> $DIR/borrow-checker-lifetime-error-464711.rs:5:9
33
|
44
LL | let mut z = 0;
55
| ----- binding `z` declared here

tests/ui/issues/issue-11869.rs renamed to tests/ui/borrowck/string-borrowing-pattern-matching-11869.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/11869
12
//@ check-pass
23
#![allow(dead_code)]
34

tests/ui/issues/issue-9918.rs renamed to tests/ui/cast/u8-to-char-cast-9918.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ run-pass
1+
// https://github.com/rust-lang/rust/issues/9918
22

33
pub fn main() {
44
assert_eq!((0 + 0u8) as char, '\0');

tests/ui/issues/issue-18058.rs renamed to tests/ui/coherence/impl-coherence-error-for-undefined-type-18058.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/18058
12
impl Undefined {}
23
//~^ ERROR cannot find type `Undefined` in this scope
34

tests/ui/issues/issue-18058.stderr renamed to tests/ui/coherence/impl-coherence-error-for-undefined-type-18058.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0412]: cannot find type `Undefined` in this scope
2-
--> $DIR/issue-18058.rs:1:6
2+
--> $DIR/impl-coherence-error-for-undefined-type-18058.rs:2:6
33
|
44
LL | impl Undefined {}
55
| ^^^^^^^^^ not found in this scope

0 commit comments

Comments
 (0)