Auto merge of #87600 - JohnTitor:classify-ui-tests, r=petrochenkov
Move some UI tests to more suitable subdirs The classifui result: https://gist.github.com/JohnTitor/c9e00840990b5e4a8fc562ec3571e427/e06c42226c6038da91e403c33b9947843420cf44 Some notes: - backtrace-debuginfo.rs: previously I skipped this, I'm still not sure what the best dir is. Any ideas? - estr-subtyping.rs: Seems a quite old test so removed, shouldn't? - deref-suggestion.rs: moved to inference as `suggestions` is not an ideal dir. - issue-43023.rs: a bit misclassified, moved to `derives` cc #73494 r? `@petrochenkov`
This commit is contained in:
commit
fa2692990c
10 changed files with 1 additions and 27 deletions
|
|
@ -1,13 +0,0 @@
|
|||
mod a {
|
||||
struct Foo;
|
||||
impl Foo { pub fn new() {} }
|
||||
enum Bar {}
|
||||
impl Bar { pub fn new() {} }
|
||||
}
|
||||
|
||||
fn main() {
|
||||
a::Foo::new();
|
||||
//~^ ERROR: struct `Foo` is private
|
||||
a::Bar::new();
|
||||
//~^ ERROR: enum `Bar` is private
|
||||
}
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
error[E0603]: struct `Foo` is private
|
||||
--> $DIR/issue-13641.rs:9:8
|
||||
|
|
||||
LL | a::Foo::new();
|
||||
| ^^^ private struct
|
||||
|
|
||||
note: the struct `Foo` is defined here
|
||||
--> $DIR/issue-13641.rs:2:5
|
||||
|
|
||||
LL | struct Foo;
|
||||
| ^^^^^^^^^^^
|
||||
|
||||
error[E0603]: enum `Bar` is private
|
||||
--> $DIR/issue-13641.rs:11:8
|
||||
|
|
||||
LL | a::Bar::new();
|
||||
| ^^^ private enum
|
||||
|
|
||||
note: the enum `Bar` is defined here
|
||||
--> $DIR/issue-13641.rs:4:5
|
||||
|
|
||||
LL | enum Bar {}
|
||||
| ^^^^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0603`.
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
// run-pass
|
||||
#![allow(dead_code)]
|
||||
#[derive(Debug, PartialEq)]
|
||||
enum Bar {
|
||||
A(i64),
|
||||
B(i32),
|
||||
C,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
struct Foo(Bar, u8);
|
||||
|
||||
static FOO: [Foo; 2] = [Foo(Bar::C, 0), Foo(Bar::C, 0xFF)];
|
||||
|
||||
fn main() {
|
||||
assert_eq!(&FOO[1], &Foo(Bar::C, 0xFF));
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
struct S;
|
||||
|
||||
impl S {
|
||||
#[derive(Debug)] //~ ERROR `derive` may only be applied to `struct`s, `enum`s and `union`s
|
||||
fn f() {
|
||||
file!();
|
||||
}
|
||||
}
|
||||
|
||||
trait Tr1 {
|
||||
#[derive(Debug)] //~ ERROR `derive` may only be applied to `struct`s, `enum`s and `union`s
|
||||
fn f();
|
||||
}
|
||||
|
||||
trait Tr2 {
|
||||
#[derive(Debug)] //~ ERROR `derive` may only be applied to `struct`s, `enum`s and `union`s
|
||||
type F;
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
|
||||
--> $DIR/issue-43023.rs:4:5
|
||||
|
|
||||
LL | #[derive(Debug)]
|
||||
| ^^^^^^^^^^^^^^^^ not applicable here
|
||||
LL | / fn f() {
|
||||
LL | | file!();
|
||||
LL | | }
|
||||
| |_____- not a `struct`, `enum` or `union`
|
||||
|
||||
error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
|
||||
--> $DIR/issue-43023.rs:11:5
|
||||
|
|
||||
LL | #[derive(Debug)]
|
||||
| ^^^^^^^^^^^^^^^^ not applicable here
|
||||
LL | fn f();
|
||||
| ------- not a `struct`, `enum` or `union`
|
||||
|
||||
error[E0774]: `derive` may only be applied to `struct`s, `enum`s and `union`s
|
||||
--> $DIR/issue-43023.rs:16:5
|
||||
|
|
||||
LL | #[derive(Debug)]
|
||||
| ^^^^^^^^^^^^^^^^ not applicable here
|
||||
LL | type F;
|
||||
| ------- not a `struct`, `enum` or `union`
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0774`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue