Skip to content

Commit 14974e9

Browse files
committed
Rehome tests/ui/issues/ tests [3/?]
1 parent 7f92973 commit 14974e9

15 files changed

+29
-7
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ impl<T> HasNumber<T> for Two {
2121
}
2222

2323
fn main() {}
24+
25+
// https://github.com/rust-lang/rust/issues/26095

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ fn main() {
66
//~^^ ERROR `z` does not live long enough [E0597]
77
println!("{}", y);
88
}
9+
10+
// https://github.com/rust-lang/rust/issues/464711

tests/ui/issues/issue-46471-1.stderr renamed to tests/ui/borrowck/borrow-checker-lifetime-error-issue-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-issue-464711.rs:4: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-issue-11869.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ fn borrow<'a>(binding: &'a A) -> &'a str {
1414
}
1515

1616
fn main() {}
17+
18+
// https://github.com/rust-lang/rust/issues/11869

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ impl Undefined {}
22
//~^ ERROR cannot find type `Undefined` in this scope
33

44
fn main() {}
5+
6+
// https://github.com/rust-lang/rust/issues/18058

tests/ui/issues/issue-18058.stderr renamed to tests/ui/coherence/impl-coherence-error-for-undefined-type-issue-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-issue-18058.rs:1:6
33
|
44
LL | impl Undefined {}
55
| ^^^^^^^^^ not found in this scope

tests/ui/issues/issue-77919.rs renamed to tests/ui/const-generics/trait-resolution-error-with-const-generics-issue-77919.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ struct Multiply<N, M> {
1111
impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
1212
//~^ ERROR cannot find type `VAL` in this scope
1313
//~| ERROR not all trait items implemented
14+
15+
// https://github.com/rust-lang/rust/issues/77919

tests/ui/issues/issue-77919.stderr renamed to tests/ui/const-generics/trait-resolution-error-with-const-generics-issue-77919.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0412]: cannot find type `PhantomData` in this scope
2-
--> $DIR/issue-77919.rs:9:9
2+
--> $DIR/trait-resolution-error-with-const-generics-issue-77919.rs:9:9
33
|
44
LL | _n: PhantomData,
55
| ^^^^^^^^^^^ not found in this scope
@@ -10,7 +10,7 @@ LL + use std::marker::PhantomData;
1010
|
1111

1212
error[E0412]: cannot find type `VAL` in this scope
13-
--> $DIR/issue-77919.rs:11:63
13+
--> $DIR/trait-resolution-error-with-const-generics-issue-77919.rs:11:63
1414
|
1515
LL | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
1616
| ^^^ not found in this scope
@@ -21,7 +21,7 @@ LL | impl<N, M, VAL> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
2121
| +++++
2222

2323
error[E0046]: not all trait items implemented, missing: `VAL`
24-
--> $DIR/issue-77919.rs:11:1
24+
--> $DIR/trait-resolution-error-with-const-generics-issue-77919.rs:11:1
2525
|
2626
LL | const VAL: T;
2727
| ------------ `VAL` from trait

tests/ui/issues/issue-4734.rs renamed to tests/ui/drop/destructor-run-for-expression-issue-4734.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ fn main() {
3636
{ B; }
3737
assert_eq!(unsafe { NUM_DROPS }, 4);
3838
}
39+
40+
// https://github.com/rust-lang/rust/issues/4734

tests/ui/issues/issue-36786-resolve-call.rs renamed to tests/ui/functions-closures/autoderef-vec-box-fn-issue-36786.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ fn main() {
66
let x : Vec<Box<dyn Fn()>> = vec![Box::new(|| ())];
77
x[0]()
88
}
9+
10+
// https://github.com/rust-lang/rust/issues/36786

0 commit comments

Comments
 (0)