Skip to content

Commit 7196d8c

Browse files
committed
Rehome tests/ui/issues/ tests [3/?]
1 parent 4b596bb commit 7196d8c

File tree

58 files changed

+89
-58
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+89
-58
lines changed

tests/ui/issues/issue-5754.rs renamed to tests/ui/abi/extern-c-two-doubles-x86_64-5754.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/5754
12
//@ build-pass
23
#![allow(dead_code)]
34
#![allow(improper_ctypes)]
45

5-
66
struct TwoDoubles {
77
r: f64,
88
i: f64

tests/ui/issues/issue-8898.rs renamed to tests/ui/array-slice-vec/fixed-size-arrays-zero-size-types-8898.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/8898
12
//@ run-pass
23

34
fn assert_repr_eq<T: std::fmt::Debug>(obj : T, expected : String) {

tests/ui/issues/issue-43483.rs renamed to tests/ui/associated-consts/trait-associated-const-usage-43483.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/43483
12
//@ check-pass
23
#![allow(dead_code)]
34
#![allow(unused_variables)]

tests/ui/issues/issue-21946.rs renamed to tests/ui/associated-types/recursive-associated-type-overflow-21946.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/21946
12
trait Foo {
23
type A;
34
}

tests/ui/issues/issue-21946.stderr renamed to tests/ui/associated-types/recursive-associated-type-overflow-21946.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0275]: overflow evaluating the requirement `<FooStruct as Foo>::A == _`
2-
--> $DIR/issue-21946.rs:8:14
2+
--> $DIR/recursive-associated-type-overflow-21946.rs:9:14
33
|
44
LL | type A = <FooStruct as Foo>::A;
55
| ^^^^^^^^^^^^^^^^^^^^^

tests/ui/issues/issue-7061.rs renamed to tests/ui/borrowck/mismatched-pointer-type-in-self-7061.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/7061
12
//@ dont-require-annotations: NOTE
23

34
struct BarStruct;

tests/ui/issues/issue-7061.stderr renamed to tests/ui/borrowck/mismatched-pointer-type-in-self-7061.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0308]: mismatched types
2-
--> $DIR/issue-7061.rs:6:46
2+
--> $DIR/mismatched-pointer-type-in-self-7061.rs:7:46
33
|
44
LL | fn foo(&'a mut self) -> Box<BarStruct> { self }
55
| -------------- ^^^^ expected `Box<BarStruct>`, found `&mut BarStruct`

tests/ui/issues/issue-13665.rs renamed to tests/ui/borrowck/region-checker-map-closure-13665.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/13665
12
//@ run-pass
23

34
fn foo<'r>() {

tests/ui/issues/issue-21600.rs renamed to tests/ui/closures/aliasability-violation-with-closure-21600.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/21600
12
fn call_it<F>(f: F) where F: Fn() { f(); }
23

34
struct A;

tests/ui/issues/issue-21600.stderr renamed to tests/ui/closures/aliasability-violation-with-closure-21600.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0596]: cannot borrow `x` as mutable, as it is a captured variable in a `Fn` closure
2-
--> $DIR/issue-21600.rs:14:20
2+
--> $DIR/aliasability-violation-with-closure-21600.rs:15:20
33
|
44
LL | fn call_it<F>(f: F) where F: Fn() { f(); }
55
| - change this to accept `FnMut` instead of `Fn`
@@ -11,7 +11,7 @@ LL | call_it(|| x.gen_mut());
1111
| expects `Fn` instead of `FnMut`
1212

1313
error[E0596]: cannot borrow `x` as mutable, as it is a captured variable in a `Fn` closure
14-
--> $DIR/issue-21600.rs:14:17
14+
--> $DIR/aliasability-violation-with-closure-21600.rs:15:17
1515
|
1616
LL | fn call_it<F>(f: F) where F: Fn() { f(); }
1717
| - change this to accept `FnMut` instead of `Fn`

0 commit comments

Comments
 (0)