diff options
| author | Birunthan Mohanathas <birunthan@mohanathas.com> | 2013-06-27 20:47:45 +0300 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-06-27 23:20:42 -0400 |
| commit | dcf1dc060a895d2b4de04b6d13291989c2f3dbec (patch) | |
| tree | 681f3df43cea6e8b59c85f6c7b7c9b1a164b7b6e /src/libstd | |
| parent | 779ee2a2dd06235470cf5b6bea90b78619dc0654 (diff) | |
| download | rust-dcf1dc060a895d2b4de04b6d13291989c2f3dbec.tar.gz rust-dcf1dc060a895d2b4de04b6d13291989c2f3dbec.zip | |
Rename #[no_drop_flag] to #[unsafe_no_drop_flag]
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/unstable/atomics.rs | 2 | ||||
| -rw-r--r-- | src/libstd/util.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/unstable/atomics.rs b/src/libstd/unstable/atomics.rs index 45eced9846c..1e5ac305df3 100644 --- a/src/libstd/unstable/atomics.rs +++ b/src/libstd/unstable/atomics.rs @@ -62,7 +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] +#[unsafe_no_drop_flag] pub struct AtomicOption<T> { priv p: *mut c_void } diff --git a/src/libstd/util.rs b/src/libstd/util.rs index e66271df478..fe1087a0438 100644 --- a/src/libstd/util.rs +++ b/src/libstd/util.rs @@ -76,7 +76,7 @@ pub fn replace<T>(dest: &mut T, mut src: T) -> T { /// A non-copyable dummy type. #[deriving(Eq, TotalEq, Ord, TotalOrd)] -#[no_drop_flag] +#[unsafe_no_drop_flag] pub struct NonCopyable; impl Drop for NonCopyable { @@ -171,7 +171,7 @@ mod tests { fn test_noncopyable() { assert_eq!(size_of::<NonCopyable>(), 0); - // verify that `#[no_drop_flag]` works as intended on a zero-size struct + // verify that `#[unsafe_no_drop_flag]` works as intended on a zero-size struct static mut did_run: bool = false; |
