diff options
| author | Fabian Wolff <fabian.wolff@alumni.ethz.ch> | 2021-06-10 13:52:00 +0200 |
|---|---|---|
| committer | Fabian Wolff <fabian.wolff@alumni.ethz.ch> | 2021-08-04 10:48:30 +0200 |
| commit | f8372f876c66ae4df96638bbfdf9ac7baffcf3a6 (patch) | |
| tree | 5187f5f174709d7b0f1bad0e8fc0421e2444329e /src/test/ui/proc-macro | |
| parent | 71ff9b41e9ebd3e336019513917a7a8868d1cc66 (diff) | |
| download | rust-f8372f876c66ae4df96638bbfdf9ac7baffcf3a6.tar.gz rust-f8372f876c66ae4df96638bbfdf9ac7baffcf3a6.zip | |
Remove trailing whitespace from error messages
Diffstat (limited to 'src/test/ui/proc-macro')
4 files changed, 25 insertions, 25 deletions
diff --git a/src/test/ui/proc-macro/group-compat-hack/group-compat-hack.stderr b/src/test/ui/proc-macro/group-compat-hack/group-compat-hack.stderr index 070b0667213..001b345204d 100644 --- a/src/test/ui/proc-macro/group-compat-hack/group-compat-hack.stderr +++ b/src/test/ui/proc-macro/group-compat-hack/group-compat-hack.stderr @@ -3,7 +3,7 @@ warning: using an old version of `time-macros-impl` | LL | #[my_macro] struct One($name); | ^^^^^ - | + | ::: $DIR/group-compat-hack.rs:27:5 | LL | impl_macros!(Foo); @@ -20,7 +20,7 @@ warning: using an old version of `time-macros-impl` | LL | #[my_macro] struct One($name); | ^^^^^ - | + | ::: $DIR/group-compat-hack.rs:44:5 | LL | impl_macros!(Foo); @@ -36,7 +36,7 @@ warning: using an old version of `js-sys` | LL | #[my_macro] struct Two($name); | ^^^^^ - | + | ::: $DIR/group-compat-hack.rs:46:5 | LL | arrays!(Foo); @@ -52,7 +52,7 @@ warning: using an old version of `actix-web` | LL | #[my_macro] struct Three($T); | ^^ - | + | ::: $DIR/group-compat-hack.rs:55:5 | LL | tuple_from_req!(Foo); @@ -68,7 +68,7 @@ warning: using an old version of `actix-web` | LL | #[my_macro] struct Three($T); | ^^ - | + | ::: $DIR/group-compat-hack.rs:63:5 | LL | tuple_from_req!(Foo); @@ -87,7 +87,7 @@ warning: using an old version of `time-macros-impl` | LL | #[my_macro] struct One($name); | ^^^^^ - | + | ::: $DIR/group-compat-hack.rs:27:5 | LL | impl_macros!(Foo); @@ -105,7 +105,7 @@ warning: using an old version of `time-macros-impl` | LL | #[my_macro] struct One($name); | ^^^^^ - | + | ::: $DIR/group-compat-hack.rs:44:5 | LL | impl_macros!(Foo); @@ -122,7 +122,7 @@ warning: using an old version of `js-sys` | LL | #[my_macro] struct Two($name); | ^^^^^ - | + | ::: $DIR/group-compat-hack.rs:46:5 | LL | arrays!(Foo); @@ -139,7 +139,7 @@ warning: using an old version of `actix-web` | LL | #[my_macro] struct Three($T); | ^^ - | + | ::: $DIR/group-compat-hack.rs:55:5 | LL | tuple_from_req!(Foo); @@ -156,7 +156,7 @@ warning: using an old version of `actix-web` | LL | #[my_macro] struct Three($T); | ^^ - | + | ::: $DIR/group-compat-hack.rs:63:5 | LL | tuple_from_req!(Foo); diff --git a/src/test/ui/proc-macro/parent-source-spans.stderr b/src/test/ui/proc-macro/parent-source-spans.stderr index 0af1b4a1822..071e103742e 100644 --- a/src/test/ui/proc-macro/parent-source-spans.stderr +++ b/src/test/ui/proc-macro/parent-source-spans.stderr @@ -144,7 +144,7 @@ LL | parent_source_spans!($($tokens)*); ... LL | one!("hello", "world"); | ----------------------- in this macro invocation - | + | ::: $SRC_DIR/core/src/result.rs:LL:COL | LL | Ok(#[stable(feature = "rust1", since = "1.0.0")] T), @@ -160,7 +160,7 @@ LL | parent_source_spans!($($tokens)*); ... LL | two!("yay", "rust"); | -------------------- in this macro invocation - | + | ::: $SRC_DIR/core/src/result.rs:LL:COL | LL | Ok(#[stable(feature = "rust1", since = "1.0.0")] T), @@ -176,7 +176,7 @@ LL | parent_source_spans!($($tokens)*); ... LL | three!("hip", "hop"); | --------------------- in this macro invocation - | + | ::: $SRC_DIR/core/src/result.rs:LL:COL | LL | Ok(#[stable(feature = "rust1", since = "1.0.0")] T), diff --git a/src/test/ui/proc-macro/resolve-error.stderr b/src/test/ui/proc-macro/resolve-error.stderr index c5fbf0d1d99..e518c6ab800 100644 --- a/src/test/ui/proc-macro/resolve-error.stderr +++ b/src/test/ui/proc-macro/resolve-error.stderr @@ -3,7 +3,7 @@ error: cannot find macro `bang_proc_macrp` in this scope | LL | bang_proc_macrp!(); | ^^^^^^^^^^^^^^^ help: a macro with a similar name exists: `bang_proc_macro` - | + | ::: $DIR/auxiliary/test-macros.rs:15:1 | LL | pub fn empty(_: TokenStream) -> TokenStream { @@ -50,7 +50,7 @@ error: cannot find derive macro `Dlona` in this scope | LL | #[derive(Dlona)] | ^^^^^ help: a derive macro with a similar name exists: `Clona` - | + | ::: $DIR/auxiliary/derive-clona.rs:11:1 | LL | pub fn derive_clonea(input: TokenStream) -> TokenStream { @@ -61,7 +61,7 @@ error: cannot find derive macro `Dlona` in this scope | LL | #[derive(Dlona)] | ^^^^^ help: a derive macro with a similar name exists: `Clona` - | + | ::: $DIR/auxiliary/derive-clona.rs:11:1 | LL | pub fn derive_clonea(input: TokenStream) -> TokenStream { @@ -72,7 +72,7 @@ error: cannot find derive macro `Dlone` in this scope | LL | #[derive(Dlone)] | ^^^^^ help: a derive macro with a similar name exists: `Clone` - | + | ::: $SRC_DIR/core/src/clone.rs:LL:COL | LL | pub macro Clone($item:item) { @@ -83,7 +83,7 @@ error: cannot find derive macro `Dlone` in this scope | LL | #[derive(Dlone)] | ^^^^^ help: a derive macro with a similar name exists: `Clone` - | + | ::: $SRC_DIR/core/src/clone.rs:LL:COL | LL | pub macro Clone($item:item) { @@ -100,7 +100,7 @@ error: cannot find attribute `attr_proc_macra` in this scope | LL | #[attr_proc_macra] | ^^^^^^^^^^^^^^^ help: an attribute macro with a similar name exists: `attr_proc_macro` - | + | ::: $DIR/auxiliary/test-macros.rs:20:1 | LL | pub fn empty_attr(_: TokenStream, _: TokenStream) -> TokenStream { @@ -111,7 +111,7 @@ error: cannot find derive macro `FooWithLongNan` in this scope | LL | #[derive(FooWithLongNan)] | ^^^^^^^^^^^^^^ help: a derive macro with a similar name exists: `FooWithLongName` - | + | ::: $DIR/auxiliary/derive-foo.rs:11:1 | LL | pub fn derive_foo(input: TokenStream) -> TokenStream { @@ -122,7 +122,7 @@ error: cannot find derive macro `FooWithLongNan` in this scope | LL | #[derive(FooWithLongNan)] | ^^^^^^^^^^^^^^ help: a derive macro with a similar name exists: `FooWithLongName` - | + | ::: $DIR/auxiliary/derive-foo.rs:11:1 | LL | pub fn derive_foo(input: TokenStream) -> TokenStream { diff --git a/src/test/ui/proc-macro/span-from-proc-macro.stderr b/src/test/ui/proc-macro/span-from-proc-macro.stderr index c3904d62c8d..11ee20e846d 100644 --- a/src/test/ui/proc-macro/span-from-proc-macro.stderr +++ b/src/test/ui/proc-macro/span-from-proc-macro.stderr @@ -6,7 +6,7 @@ LL | pub fn error_from_attribute(_args: TokenStream, _input: TokenStream) -> Tok ... LL | field: MissingType | ^^^^^^^^^^^ not found in this scope - | + | ::: $DIR/span-from-proc-macro.rs:8:1 | LL | #[error_from_attribute] @@ -20,7 +20,7 @@ LL | pub fn error_from_derive(_input: TokenStream) -> TokenStream { ... LL | Variant(OtherMissingType) | ^^^^^^^^^^^^^^^^ not found in this scope - | + | ::: $DIR/span-from-proc-macro.rs:11:10 | LL | #[derive(ErrorFromDerive)] @@ -34,7 +34,7 @@ LL | pub fn other_error_from_bang(_input: TokenStream) -> TokenStream { LL | custom_quote::custom_quote! { LL | my_ident | ^^^^^^^^ not found in this scope - | + | ::: $DIR/span-from-proc-macro.rs:16:5 | LL | other_error_from_bang!(); @@ -50,7 +50,7 @@ LL | let bang_error: bool = 25; ... LL | pub fn error_from_bang(_input: TokenStream) -> TokenStream { | ---------------------------------------------------------- in this expansion of `error_from_bang!` - | + | ::: $DIR/span-from-proc-macro.rs:15:5 | LL | error_from_bang!(); |
