diff options
| author | James Miller <bladeon@gmail.com> | 2013-06-23 16:13:29 +1200 |
|---|---|---|
| committer | James Miller <james@aatch.net> | 2013-06-25 16:11:34 +1200 |
| commit | d9f6dd263c16a21108c27dbf15a3d59a43a5b490 (patch) | |
| tree | 58dea37de1998986a2481a4da676dba89b98ab74 /src/libstd | |
| parent | 0cca08a21a33b60f9a27a4bab119b5ec8261be56 (diff) | |
| download | rust-d9f6dd263c16a21108c27dbf15a3d59a43a5b490.tar.gz rust-d9f6dd263c16a21108c27dbf15a3d59a43a5b490.zip | |
Set #[no_drop_flag] on Rc<T> and AtomicOption. Add Test
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/unstable/atomics.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/unstable/atomics.rs b/src/libstd/unstable/atomics.rs index 6e7a7e2b129..7a3a5f51d35 100644 --- a/src/libstd/unstable/atomics.rs +++ b/src/libstd/unstable/atomics.rs @@ -62,6 +62,7 @@ pub struct AtomicPtr<T> { /** * An owned atomic pointer. Ensures that only a single reference to the data is held at any time. */ +#[no_drop_flag] pub struct AtomicOption<T> { priv p: *mut c_void } |
