-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Fix macro_rules! duplication when reexported in the same module #89867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
15c876d
e252274
7d6cfb7
55fad29
e259cc4
db5b64a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// edition:2018 | ||
|
||
#![no_core] | ||
#![feature(no_core)] | ||
|
||
// @count macro.json "$.index[*][?(@.name=='macro')].inner.items[*]" 2 | ||
|
||
// @set repro_id = macro.json "$.index[*][?(@.name=='repro')].id" | ||
// @has - "$.index[*][?(@.name=='macro')].inner.items[*]" $repro_id | ||
#[macro_export] | ||
macro_rules! repro { | ||
() => {}; | ||
} | ||
|
||
// @set repro2_id = macro.json "$.index[*][?(@.inner.name=='repro2')].id" | ||
// @has - "$.index[*][?(@.name=='macro')].inner.items[*]" $repro2_id | ||
pub use crate::repro as repro2; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// edition:2018 | ||
|
||
#![no_core] | ||
#![feature(no_core)] | ||
|
||
// @matches 'issue_89852/sidebar-items.js' '"repro"' | ||
// @!matches 'issue_89852/sidebar-items.js' '"repro".*"repro"' | ||
Comment on lines
+6
to
+7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe, but this would be a pre-existing issue that my PR does not try to solve. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't you use count instead to ensure there is only 1 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Hmm, I wonder if they are related issues though: #89852 (comment) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Unfortunately no because it's a javascript and XPath doesn't work on them. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess it'll be enough for now then. It would have been much simpler to check using rustdoc-gui though... :-/ |
||
|
||
#[macro_export] | ||
macro_rules! repro { | ||
() => {}; | ||
} | ||
|
||
pub use crate::repro as repro2; |
Uh oh!
There was an error while loading. Please reload this page.