-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
25 additions
and
82 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,47 @@ | ||
error[E0412]: cannot find type `MissingType` in this scope | ||
--> $DIR/auxiliary/span-from-proc-macro.rs:37:20 | ||
--> $DIR/auxiliary/span-from-proc-macro.rs:26:1 | ||
| | ||
LL | pub fn error_from_attribute(_args: TokenStream, _input: TokenStream) -> TokenStream { | ||
| ----------------------------------------------------------------------------------- in this expansion of `#[error_from_attribute]` | ||
... | ||
LL | field: MissingType | ||
| ^^^^^^^^^^^ not found in this scope | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | | ||
| not found in this scope | ||
| in this expansion of `#[error_from_attribute]` | ||
| | ||
::: $DIR/span-from-proc-macro.rs:8:1 | ||
::: $DIR/span-from-proc-macro.rs:7:1 | ||
| | ||
LL | #[error_from_attribute] | ||
| ----------------------- in this procedural macro expansion | ||
|
||
error[E0412]: cannot find type `OtherMissingType` in this scope | ||
--> $DIR/auxiliary/span-from-proc-macro.rs:46:21 | ||
--> $DIR/auxiliary/span-from-proc-macro.rs:35:1 | ||
| | ||
LL | pub fn error_from_derive(_input: TokenStream) -> TokenStream { | ||
| ------------------------------------------------------------ in this expansion of `#[derive(ErrorFromDerive)]` | ||
... | ||
LL | Variant(OtherMissingType) | ||
| ^^^^^^^^^^^^^^^^ not found in this scope | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | | ||
| not found in this scope | ||
| in this expansion of `#[derive(ErrorFromDerive)]` | ||
| | ||
::: $DIR/span-from-proc-macro.rs:11:10 | ||
::: $DIR/span-from-proc-macro.rs:10:10 | ||
| | ||
LL | #[derive(ErrorFromDerive)] | ||
| --------------- in this derive macro expansion | ||
|
||
error[E0425]: cannot find value `my_ident` in this scope | ||
--> $DIR/auxiliary/span-from-proc-macro.rs:29:9 | ||
| | ||
LL | pub fn other_error_from_bang(_input: TokenStream) -> TokenStream { | ||
| ---------------------------------------------------------------- in this expansion of `other_error_from_bang!` | ||
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!(); | ||
| ------------------------ in this macro invocation | ||
|
||
error[E0308]: mismatched types | ||
--> $DIR/auxiliary/span-from-proc-macro.rs:16:36 | ||
--> $DIR/auxiliary/span-from-proc-macro.rs:21:1 | ||
| | ||
LL | let bang_error: bool = 25; | ||
| ---- ^^ expected `bool`, found integer | ||
| | | ||
| expected due to this | ||
... | ||
LL | pub fn error_from_bang(_input: TokenStream) -> TokenStream { | ||
| ---------------------------------------------------------- in this expansion of `error_from_bang!` | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | | ||
| expected `bool`, found integer | ||
| expected due to this | ||
| in this expansion of `error_from_bang!` | ||
| | ||
::: $DIR/span-from-proc-macro.rs:15:5 | ||
::: $DIR/span-from-proc-macro.rs:14:5 | ||
| | ||
LL | error_from_bang!(); | ||
| ------------------ in this macro invocation | ||
|
||
error: aborting due to 4 previous errors | ||
error: aborting due to 3 previous errors | ||
|
||
Some errors have detailed explanations: E0308, E0412, E0425. | ||
Some errors have detailed explanations: E0308, E0412. | ||
For more information about an error, try `rustc --explain E0308`. |