-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Macros show up in rust docs when pub use
'd
#40768
Comments
@Pursuit92 That being said, we want to stabilize |
Apparently this allows stable reexport of macro_rules macros, not on purpose. Seems like this should be addressed. |
We have been shipping for several months code that relies on stable reexporting of macro_rules macros. Please don’t break this now. |
I disagree with the notion that we shouldn't fix bugs just because there might be code that relies on the incorrect behavior. That's how we end up with windows-esque insanity where bugs from back in the DOS days get forward ported rather than fixed to actually match the spec. |
There definitely is, this is not theoretical.
This behavior is not incorrect: it is working perfectly as intended. The only part that wasn’t intended is making that behavior available on the stable channel yet. There is also no other way to achieve this on today’s stable rust, so "fixing" this accidental stabilization would be a regression in functionality. |
There was also some code in existence (some of mine included) that relied on Go's built-in hashmaps being consistently ordered between separate And there are plenty of things that aren't possible in stable rust. The fact that something was made possible by mistake is no reason to get stuck with a feature design that may or may not be how it would eventually end up. |
@jechas01
There's wide agreement that this is how it will end up, so there's very little risk of this. We almost stabilized |
I don't really know what's going on. @jseyfried -- what is your recommended course of action here? |
Recommended course of action is to stabilize |
Recategorizing as a @rust-lang/t-dev-tools-docs issue, since this appears to be a rustdoc limitation, though I think @jseyfried's recommendation (that we stabilize the underlying feature) may be wise. @jseyfried -- what is the relevant tracking issue? |
See #40768 (comment) Looks like something was accidentally stabilized. I bet it's common-law-stable by now. |
Er, I take it back, sorry dev-tools-doc team =) |
Lang team discussed in meeting. Conclusion was: we don't want to break code working today, and would prefer to push toward stabilization of re-exports. @withoutboats will take action on the applicable tracking issue. |
Relevant tracking issue is #35896. |
No longer relevant as of the stable 1.30 release, closing! |
From my understanding, macro re-export is unstable and feature-gated, but macros are showing up in rust docs when, for example, I have:
Which would seem to imply that they should be accessible from other crates, even though they can't.
rustc version:
rustc 1.17.0-nightly (134c4a0 2017-03-20)
cc @jseyfried
The text was updated successfully, but these errors were encountered: