diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-02-11 14:40:09 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-02-11 15:05:39 -0800 |
| commit | 315730fb273c4d55c4c25d4fba2b68dcd6a54093 (patch) | |
| tree | 7d7a342c44200e32783db6e73b2bd4a90857ac9a /src/libstd | |
| parent | aa0db172de42a981a64730df146ccf3d737c5762 (diff) | |
| download | rust-315730fb273c4d55c4c25d4fba2b68dcd6a54093.tar.gz rust-315730fb273c4d55c4c25d4fba2b68dcd6a54093.zip | |
Test fixes and rebase conflicts
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/sys/common/thread_local.rs | 4 | ||||
| -rw-r--r-- | src/libstd/sys/unix/fs2.rs | 4 | ||||
| -rw-r--r-- | src/libstd/thread_local/mod.rs | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/src/libstd/sys/common/thread_local.rs b/src/libstd/sys/common/thread_local.rs index edd16e0c062..ef682902dfc 100644 --- a/src/libstd/sys/common/thread_local.rs +++ b/src/libstd/sys/common/thread_local.rs @@ -84,14 +84,17 @@ use sys::thread_local as imp; /// KEY.set(1 as *mut u8); /// } /// ``` +#[stable(feature = "rust1", since = "1.0.0")] pub struct StaticKey { /// Inner static TLS key (internals), created with by `INIT_INNER` in this /// module. + #[stable(feature = "rust1", since = "1.0.0")] pub inner: StaticKeyInner, /// Destructor for the TLS value. /// /// See `Key::new` for information about when the destructor runs and how /// it runs. + #[stable(feature = "rust1", since = "1.0.0")] pub dtor: Option<unsafe extern fn(*mut u8)>, } @@ -128,6 +131,7 @@ pub struct Key { /// Constant initialization value for static TLS keys. /// /// This value specifies no destructor by default. +#[stable(feature = "rust1", since = "1.0.0")] pub const INIT: StaticKey = StaticKey { inner: INIT_INNER, dtor: None, diff --git a/src/libstd/sys/unix/fs2.rs b/src/libstd/sys/unix/fs2.rs index 06e59640b95..77d5503b683 100644 --- a/src/libstd/sys/unix/fs2.rs +++ b/src/libstd/sys/unix/fs2.rs @@ -159,9 +159,7 @@ impl OpenOptions { flags: 0, read: false, write: false, - mode: libc::S_IRUSR | libc::S_IWUSR - | libc::S_IRGRP | libc::S_IWGRP - | libc::S_IROTH | libc::S_IWOTH, + mode: 0o666, } } diff --git a/src/libstd/thread_local/mod.rs b/src/libstd/thread_local/mod.rs index 0ec241a65e2..eab9cd84539 100644 --- a/src/libstd/thread_local/mod.rs +++ b/src/libstd/thread_local/mod.rs @@ -452,6 +452,7 @@ mod imp { } #[doc(hidden)] + #[stable(feature = "rust1", since = "1.0.0")] pub unsafe extern fn destroy_value<T>(ptr: *mut u8) { let ptr = ptr as *mut Key<T>; // Right before we run the user destructor be sure to flag the @@ -523,6 +524,7 @@ mod imp { } #[doc(hidden)] + #[stable(feature = "rust1", since = "1.0.0")] pub unsafe extern fn destroy_value<T: 'static>(ptr: *mut u8) { // The OS TLS ensures that this key contains a NULL value when this // destructor starts to run. We set it back to a sentinel value of 1 to |
