-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Revert "Rollup merge of #82296 - spastorino:pubrules, r=nikomatsakis" #83713
Changes from all commits
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 |
---|---|---|
|
@@ -134,6 +134,8 @@ declare_features! ( | |
which is available from cargo build scripts with `cargo:rustc-link-arg` now")), | ||
/// Allows using `#[main]` to replace the entrypoint `#[lang = "start"]` calls. | ||
(removed, main, "1.53.0", Some(29634), None, None), | ||
(removed, pub_macro_rules, "1.53.0", Some(78855), None, | ||
Some("removed due to being incomplete, in particular it does not work across crates")), | ||
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. Also, always check my broken english :) |
||
|
||
// ------------------------------------------------------------------------- | ||
// feature-group-end: removed features | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#[macro_use] mod bleh { | ||
pub macro_rules! foo { //~ ERROR can't qualify macro_rules invocation | ||
($n:ident) => ( | ||
fn $n () -> i32 { | ||
1 | ||
} | ||
) | ||
} | ||
|
||
} | ||
|
||
foo!(meh); | ||
|
||
fn main() { | ||
println!("{}", meh()); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
error: can't qualify macro_rules invocation with `pub` | ||
--> $DIR/pub-macro-rules.rs:2:5 | ||
| | ||
LL | pub macro_rules! foo { | ||
| ^^^ help: try exporting the macro: `#[macro_export]` | ||
|
||
error: aborting due to previous error | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess since is the first version in which the feature would be removed (which would be 1.53) but I wasn't 100% sure, so please check this in particular when reviewing.