-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Remove unstable macro_reexport
#49982
Conversation
r? @TimNN (rust_highfive has picked a reviewer for you, use r? to override) |
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.
@petrochenkov: As far as I can tell with my limited knowledge of compiler internals, the changes look good.
Can you ping someone from the compiler team who is more familiar with this area of code, to give this a second look (otherwise I'll ping a random person from the team)?
src/libstd/lib.rs
Outdated
|
||
#[macro_use] | ||
#[macro_reexport(vec, format)] |
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.
@petrochenkov: Just to confirm: the existing pub use alloc_crate::vec;
below makes both, the module & macro, available?
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.
Exactly.
@@ -310,6 +309,7 @@ | |||
#![feature(unboxed_closures)] | |||
#![feature(untagged_unions)] | |||
#![feature(unwind_attributes)] | |||
#![feature(use_extern_macros)] |
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.
@petrochenkov: How likely are the changes in this file to cause crates to break, e.g. because of an unknown compiler bug? Phrased differently, do you think a crater run would make sense?
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'd say unlikely.
If all local users of libstd
like compiler and test suite build succesfully, then everything should be okay.
Your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Actual failure:
|
cc @rust-lang/lang |
error[E0557]: feature has been removed | ||
--> $DIR/macro-reexport-removed.rs:13:12 | ||
| | ||
LL | #![feature(macro_reexport)] //~ ERROR feature has been removed |
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.
This should probably have some note about why the feature was removed and what should be used instead.
Ping from triage @withoutboats! Can you review this PR? |
@pietroalbini I believe they're out this week. r? @alexcrichton maybe? |
Thanks @petrochenkov! r=me once this is ready |
@bors r=alexcrichton |
📌 Commit 80712bb has been approved by |
⌛ Testing commit 80712bbce918960c05ca24fecd0cd1473524499c with merge db96ae2f636b18fab3b95d1f9db7edf848ca17f6... |
💔 Test failed - status-travis |
This comment has been minimized.
This comment has been minimized.
@bors r=alexcrichton |
📌 Commit 730c722 has been approved by |
⌛ Testing commit 730c722 with merge fe8480e9e740cf2e778143b6cacd01450a42cc2d... |
💔 Test failed - status-travis |
This comment has been minimized.
This comment has been minimized.
1 similar comment
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Oh, come on. |
☀️ Test successful - status-appveyor, status-travis |
It's subsumed by
feature(use_extern_macros)
andpub use
cc #35896
closes #29638
closes #38951