std: Work around a stability bug in thread

Make sure the unstable `scoped` modules isn't named the same as the `scoped`
function.

cc #24334
This commit is contained in:
Alex Crichton 2015-04-12 21:42:59 -07:00
parent 47def3ef27
commit dc1f216227
2 changed files with 3 additions and 3 deletions

View File

@ -187,7 +187,7 @@ use time::Duration;
////////////////////////////////////////////////////////////////////////////////
#[macro_use] mod local;
#[macro_use] mod scoped;
#[macro_use] mod scoped_tls;
#[stable(feature = "rust1", since = "1.0.0")]
pub use self::local::{LocalKey, LocalKeyState};
@ -195,10 +195,10 @@ pub use self::local::{LocalKey, LocalKeyState};
#[unstable(feature = "scoped_tls",
reason = "scoped TLS has yet to have wide enough use to fully \
consider stabilizing its interface")]
pub use self::scoped::ScopedKey;
pub use self::scoped_tls::ScopedKey;
#[doc(hidden)] pub use self::local::__impl as __local;
#[doc(hidden)] pub use self::scoped::__impl as __scoped;
#[doc(hidden)] pub use self::scoped_tls::__impl as __scoped;
////////////////////////////////////////////////////////////////////////////////
// Builder