Skip to content
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

Merged
merged 1 commit into from
May 14, 2016
Merged

Export OnceState from libstd #33563

merged 1 commit into from
May 14, 2016

Conversation

Amanieu
Copy link
Member

@Amanieu Amanieu commented May 11, 2016

This type is used in the signature of call_once_force but isn't exported from libstd.

r? @alexcrichton

@alexcrichton
Copy link
Member

@bors: r+ c91b104

@@ -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};
Copy link
Contributor

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?

Copy link
Member Author

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.

Manishearth added a commit to Manishearth/rust that referenced this pull request May 12, 2016
Export OnceState from libstd

This type is used in the signature of `call_once_force` but isn't exported from libstd.

r? @alexcrichton
eddyb added a commit to eddyb/rust that referenced this pull request May 12, 2016
Export OnceState from libstd

This type is used in the signature of `call_once_force` but isn't exported from libstd.

r? @alexcrichton
bors added a commit that referenced this pull request May 12, 2016
eddyb added a commit to eddyb/rust that referenced this pull request May 13, 2016
Export OnceState from libstd

This type is used in the signature of `call_once_force` but isn't exported from libstd.

r? @alexcrichton
@bors
Copy link
Contributor

bors commented May 14, 2016

⌛ Testing commit c91b104 with merge 5f6eb14...

bors added a commit that referenced this pull request May 14, 2016
Export OnceState from libstd

This type is used in the signature of `call_once_force` but isn't exported from libstd.

r? @alexcrichton
@bors bors merged commit c91b104 into rust-lang:master May 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants