-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 #67677 - petrochenkov:dupexp, r=Centril
resolve: Minor cleanup of duplicate macro reexports Enabled by #65785 which changed `duplicate_macro_exports` from a lint to a hard error.
- Loading branch information
Showing
3 changed files
with
9 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
error: a macro named `foo` has already been exported | ||
error[E0428]: the name `foo` is defined multiple times | ||
--> $DIR/issue-38715.rs:5:1 | ||
| | ||
LL | macro_rules! foo { ($i:ident) => {} } | ||
| ---------------- previous definition of the macro `foo` here | ||
... | ||
LL | macro_rules! foo { () => {} } | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `foo` already exported | ||
| | ||
note: previous macro export is now shadowed | ||
--> $DIR/issue-38715.rs:2:1 | ||
| ^^^^^^^^^^^^^^^^ `foo` redefined here | ||
| | ||
LL | macro_rules! foo { ($i:ident) => {} } | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
= note: `foo` must be defined only once in the macro namespace of this module | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0428`. |