-
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
Export OnceState from libstd #33563
Export OnceState from libstd #33563
Conversation
@@ -31,7 +31,7 @@ pub use self::mutex::MUTEX_INIT; | |||
#[stable(feature = "rust1", since = "1.0.0")] | |||
pub use self::mutex::{Mutex, MutexGuard, StaticMutex}; | |||
#[stable(feature = "rust1", since = "1.0.0")] | |||
pub use self::once::{Once, ONCE_INIT}; | |||
pub use self::once::{Once, OnceState, ONCE_INIT}; |
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.
OnceState itself is unstable. But this reexport is marked stable. How do those interact?
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.
The stability of the actual item is used, not the re-export. See StaticMutex
for example, which is currently unstable as well.
Export OnceState from libstd This type is used in the signature of `call_once_force` but isn't exported from libstd. r? @alexcrichton
Export OnceState from libstd This type is used in the signature of `call_once_force` but isn't exported from libstd. r? @alexcrichton
Export OnceState from libstd This type is used in the signature of `call_once_force` but isn't exported from libstd. r? @alexcrichton
Export OnceState from libstd This type is used in the signature of `call_once_force` but isn't exported from libstd. r? @alexcrichton
This type is used in the signature of
call_once_force
but isn't exported from libstd.r? @alexcrichton