-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #90761 - hellow554:macro_span, r=estebank
Shorten Span of unused macro lints The span has been reduced to the actual ident of the macro, instead of linting the *whole* macro. Closes #90745 r? ``@estebank``
- Loading branch information
Showing
7 changed files
with
41 additions
and
62 deletions.
There are no files selected for viewing
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
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,38 +1,32 @@ | ||
error: unused macro definition | ||
--> $DIR/unused-macro.rs:5:1 | ||
error: unused macro definition: `unused` | ||
--> $DIR/unused-macro.rs:5:7 | ||
| | ||
LL | / macro unused { | ||
LL | | () => {} | ||
LL | | } | ||
| |_^ | ||
LL | macro unused { | ||
| ^^^^^^ | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/unused-macro.rs:2:9 | ||
| | ||
LL | #![deny(unused_macros)] | ||
| ^^^^^^^^^^^^^ | ||
|
||
error: unused macro definition | ||
--> $DIR/unused-macro.rs:15:5 | ||
error: unused macro definition: `unused` | ||
--> $DIR/unused-macro.rs:15:11 | ||
| | ||
LL | / macro unused { | ||
LL | | () => {} | ||
LL | | } | ||
| |_____^ | ||
LL | macro unused { | ||
| ^^^^^^ | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/unused-macro.rs:14:12 | ||
| | ||
LL | #[deny(unused_macros)] | ||
| ^^^^^^^^^^^^^ | ||
|
||
error: unused macro definition | ||
--> $DIR/unused-macro.rs:21:5 | ||
error: unused macro definition: `unused` | ||
--> $DIR/unused-macro.rs:21:22 | ||
| | ||
LL | / pub(crate) macro unused { | ||
LL | | () => {} | ||
LL | | } | ||
| |_____^ | ||
LL | pub(crate) macro unused { | ||
| ^^^^^^ | ||
|
||
error: aborting due to 3 previous errors | ||
|
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