diff options
| author | Albert Larsan <74931857+albertlarsan68@users.noreply.github.com> | 2023-01-05 09:13:28 +0100 |
|---|---|---|
| committer | Albert Larsan <74931857+albertlarsan68@users.noreply.github.com> | 2023-01-11 09:32:08 +0000 |
| commit | cf2dff2b1e3fa55fa5415d524200070d0d7aacfe (patch) | |
| tree | 40a88d9a46aaf3e8870676eb2538378b75a263eb /src/test/ui/tool-attributes | |
| parent | ca855e6e42787ecd062d81d53336fe6788ef51a9 (diff) | |
| download | rust-cf2dff2b1e3fa55fa5415d524200070d0d7aacfe.tar.gz rust-cf2dff2b1e3fa55fa5415d524200070d0d7aacfe.zip | |
Move /src/test to /tests
Diffstat (limited to 'src/test/ui/tool-attributes')
10 files changed, 0 insertions, 130 deletions
diff --git a/src/test/ui/tool-attributes/diagnostic_item.rs b/src/test/ui/tool-attributes/diagnostic_item.rs deleted file mode 100644 index 26a52ce60cf..00000000000 --- a/src/test/ui/tool-attributes/diagnostic_item.rs +++ /dev/null @@ -1,3 +0,0 @@ -#[rustc_diagnostic_item = "foomp"] //~ ERROR compiler internal support for linting -struct Foomp; -fn main() {} diff --git a/src/test/ui/tool-attributes/diagnostic_item.stderr b/src/test/ui/tool-attributes/diagnostic_item.stderr deleted file mode 100644 index 743e4b658c6..00000000000 --- a/src/test/ui/tool-attributes/diagnostic_item.stderr +++ /dev/null @@ -1,11 +0,0 @@ -error[E0658]: diagnostic items compiler internal support for linting - --> $DIR/diagnostic_item.rs:1:1 - | -LL | #[rustc_diagnostic_item = "foomp"] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = help: add `#![feature(rustc_attrs)]` to the crate attributes to enable - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0658`. diff --git a/src/test/ui/tool-attributes/diagnostic_item2.rs b/src/test/ui/tool-attributes/diagnostic_item2.rs deleted file mode 100644 index b32a66b16be..00000000000 --- a/src/test/ui/tool-attributes/diagnostic_item2.rs +++ /dev/null @@ -1,6 +0,0 @@ -// check-pass - -#[clippy::diagnostic_item = "mep"] -struct Mep; - -fn main() {} diff --git a/src/test/ui/tool-attributes/diagnostic_item3.rs b/src/test/ui/tool-attributes/diagnostic_item3.rs deleted file mode 100644 index c1a236ed1cc..00000000000 --- a/src/test/ui/tool-attributes/diagnostic_item3.rs +++ /dev/null @@ -1,7 +0,0 @@ -// check-pass -#![feature(rustc_attrs)] - -#[rustc_diagnostic_item = "foomp"] -struct Foomp; - -fn main() {} diff --git a/src/test/ui/tool-attributes/tool-attributes-misplaced-1.rs b/src/test/ui/tool-attributes/tool-attributes-misplaced-1.rs deleted file mode 100644 index bf45ba2ed82..00000000000 --- a/src/test/ui/tool-attributes/tool-attributes-misplaced-1.rs +++ /dev/null @@ -1,18 +0,0 @@ -type A = rustfmt; //~ ERROR expected type, found tool module `rustfmt` -type B = rustfmt::skip; //~ ERROR expected type, found tool attribute `rustfmt::skip` - -#[derive(rustfmt)] //~ ERROR cannot find derive macro `rustfmt` in this scope - //~| ERROR cannot find derive macro `rustfmt` in this scope -struct S; - -// Interpreted as an unstable custom attribute -#[rustfmt] //~ ERROR cannot find attribute `rustfmt` in this scope -fn check() {} - -#[rustfmt::skip] // OK -fn main() { - rustfmt; //~ ERROR expected value, found tool module `rustfmt` - rustfmt!(); //~ ERROR cannot find macro `rustfmt` in this scope - - rustfmt::skip; //~ ERROR expected value, found tool attribute `rustfmt::skip` -} diff --git a/src/test/ui/tool-attributes/tool-attributes-misplaced-1.stderr b/src/test/ui/tool-attributes/tool-attributes-misplaced-1.stderr deleted file mode 100644 index 71fd5f1d44a..00000000000 --- a/src/test/ui/tool-attributes/tool-attributes-misplaced-1.stderr +++ /dev/null @@ -1,52 +0,0 @@ -error: cannot find derive macro `rustfmt` in this scope - --> $DIR/tool-attributes-misplaced-1.rs:4:10 - | -LL | #[derive(rustfmt)] - | ^^^^^^^ - -error: cannot find derive macro `rustfmt` in this scope - --> $DIR/tool-attributes-misplaced-1.rs:4:10 - | -LL | #[derive(rustfmt)] - | ^^^^^^^ - -error: cannot find attribute `rustfmt` in this scope - --> $DIR/tool-attributes-misplaced-1.rs:9:3 - | -LL | #[rustfmt] - | ^^^^^^^ - -error: cannot find macro `rustfmt` in this scope - --> $DIR/tool-attributes-misplaced-1.rs:15:5 - | -LL | rustfmt!(); - | ^^^^^^^ - -error[E0573]: expected type, found tool module `rustfmt` - --> $DIR/tool-attributes-misplaced-1.rs:1:10 - | -LL | type A = rustfmt; - | ^^^^^^^ not a type - -error[E0573]: expected type, found tool attribute `rustfmt::skip` - --> $DIR/tool-attributes-misplaced-1.rs:2:10 - | -LL | type B = rustfmt::skip; - | ^^^^^^^^^^^^^ not a type - -error[E0423]: expected value, found tool module `rustfmt` - --> $DIR/tool-attributes-misplaced-1.rs:14:5 - | -LL | rustfmt; - | ^^^^^^^ not a value - -error[E0423]: expected value, found tool attribute `rustfmt::skip` - --> $DIR/tool-attributes-misplaced-1.rs:17:5 - | -LL | rustfmt::skip; - | ^^^^^^^^^^^^^ not a value - -error: aborting due to 8 previous errors - -Some errors have detailed explanations: E0423, E0573. -For more information about an error, try `rustc --explain E0423`. diff --git a/src/test/ui/tool-attributes/tool-attributes-misplaced-2.rs b/src/test/ui/tool-attributes/tool-attributes-misplaced-2.rs deleted file mode 100644 index b5666e4ea70..00000000000 --- a/src/test/ui/tool-attributes/tool-attributes-misplaced-2.rs +++ /dev/null @@ -1,6 +0,0 @@ -#[derive(rustfmt::skip)] //~ ERROR expected derive macro, found tool attribute `rustfmt::skip` -struct S; - -fn main() { - rustfmt::skip!(); //~ ERROR expected macro, found tool attribute `rustfmt::skip` -} diff --git a/src/test/ui/tool-attributes/tool-attributes-misplaced-2.stderr b/src/test/ui/tool-attributes/tool-attributes-misplaced-2.stderr deleted file mode 100644 index 6d0f826e621..00000000000 --- a/src/test/ui/tool-attributes/tool-attributes-misplaced-2.stderr +++ /dev/null @@ -1,14 +0,0 @@ -error: expected derive macro, found tool attribute `rustfmt::skip` - --> $DIR/tool-attributes-misplaced-2.rs:1:10 - | -LL | #[derive(rustfmt::skip)] - | ^^^^^^^^^^^^^ not a derive macro - -error: expected macro, found tool attribute `rustfmt::skip` - --> $DIR/tool-attributes-misplaced-2.rs:5:5 - | -LL | rustfmt::skip!(); - | ^^^^^^^^^^^^^ not a macro - -error: aborting due to 2 previous errors - diff --git a/src/test/ui/tool-attributes/tool-attributes-shadowing.rs b/src/test/ui/tool-attributes/tool-attributes-shadowing.rs deleted file mode 100644 index 21bbaa3a710..00000000000 --- a/src/test/ui/tool-attributes/tool-attributes-shadowing.rs +++ /dev/null @@ -1,4 +0,0 @@ -mod rustfmt {} - -#[rustfmt::skip] //~ ERROR failed to resolve: could not find `skip` in `rustfmt` -fn main() {} diff --git a/src/test/ui/tool-attributes/tool-attributes-shadowing.stderr b/src/test/ui/tool-attributes/tool-attributes-shadowing.stderr deleted file mode 100644 index 98ad109a07e..00000000000 --- a/src/test/ui/tool-attributes/tool-attributes-shadowing.stderr +++ /dev/null @@ -1,9 +0,0 @@ -error[E0433]: failed to resolve: could not find `skip` in `rustfmt` - --> $DIR/tool-attributes-shadowing.rs:3:12 - | -LL | #[rustfmt::skip] - | ^^^^ could not find `skip` in `rustfmt` - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0433`. |
