Skip to content

Commit fe5a895

Browse files
committed
---
yaml --- r: 194477 b: refs/heads/auto c: 601eca3 h: refs/heads/master i: 194475: b946564 v: v3
1 parent 9b4968d commit fe5a895

File tree

6 files changed

+23
-14
lines changed

6 files changed

+23
-14
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 5733726508bbfddebf1024e41b2d34439d548bdb
13+
refs/heads/auto: 601eca3b53a1a66a53a296f78428c1342b5f7758
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/liballoc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
#![feature(box_syntax)]
7676
#![feature(optin_builtin_traits)]
7777
#![feature(unboxed_closures)]
78-
#![feature(unsafe_no_drop_flag)]
78+
#![feature(unsafe_no_drop_flag, filling_drop)]
7979
#![feature(core)]
8080
#![feature(unique)]
8181
#![cfg_attr(test, feature(test, alloc, rustc_private))]

branches/auto/src/libcollections/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#![feature(unicode)]
3737
#![feature(unsafe_destructor)]
3838
#![feature(unique)]
39-
#![feature(unsafe_no_drop_flag)]
39+
#![feature(unsafe_no_drop_flag, filling_drop)]
4040
#![feature(step_by)]
4141
#![feature(str_char)]
4242
#![feature(convert)]

branches/auto/src/libcore/mem.rs

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -337,19 +337,28 @@ macro_rules! repeat_u8_as_u64 {
337337
// But having the sign bit set is a pain, so 0x1d is probably better.
338338
//
339339
// And of course, 0x00 brings back the old world of zero'ing on drop.
340-
#[cfg(not(stage0))] pub const POST_DROP_U8: u8 = 0x1d;
341-
#[cfg(not(stage0))] pub const POST_DROP_U32: u32 = repeat_u8_as_u32!(POST_DROP_U8);
342-
#[cfg(not(stage0))] pub const POST_DROP_U64: u64 = repeat_u8_as_u64!(POST_DROP_U8);
340+
#[cfg(not(stage0))] #[unstable(feature = "filling_drop")]
341+
pub const POST_DROP_U8: u8 = 0x1d;
342+
#[cfg(not(stage0))] #[unstable(feature = "filling_drop")]
343+
pub const POST_DROP_U32: u32 = repeat_u8_as_u32!(POST_DROP_U8);
344+
#[cfg(not(stage0))] #[unstable(feature = "filling_drop")]
345+
pub const POST_DROP_U64: u64 = repeat_u8_as_u64!(POST_DROP_U8);
343346

344347
#[cfg(target_pointer_width = "32")]
345-
#[cfg(not(stage0))] pub const POST_DROP_USIZE: usize = POST_DROP_U32 as usize;
348+
#[cfg(not(stage0))] #[unstable(feature = "filling_drop")]
349+
pub const POST_DROP_USIZE: usize = POST_DROP_U32 as usize;
346350
#[cfg(target_pointer_width = "64")]
347-
#[cfg(not(stage0))] pub const POST_DROP_USIZE: usize = POST_DROP_U64 as usize;
351+
#[cfg(not(stage0))] #[unstable(feature = "filling_drop")]
352+
pub const POST_DROP_USIZE: usize = POST_DROP_U64 as usize;
348353

349-
#[cfg(stage0)] pub const POST_DROP_U8: u8 = 0;
350-
#[cfg(stage0)] pub const POST_DROP_U32: u32 = 0;
351-
#[cfg(stage0)] pub const POST_DROP_U64: u64 = 0;
352-
#[cfg(stage0)] pub const POST_DROP_USIZE: usize = 0;
354+
#[cfg(stage0)] #[unstable(feature = "filling_drop")]
355+
pub const POST_DROP_U8: u8 = 0;
356+
#[cfg(stage0)] #[unstable(feature = "filling_drop")]
357+
pub const POST_DROP_U32: u32 = 0;
358+
#[cfg(stage0)] #[unstable(feature = "filling_drop")]
359+
pub const POST_DROP_U64: u64 = 0;
360+
#[cfg(stage0)] #[unstable(feature = "filling_drop")]
361+
pub const POST_DROP_USIZE: usize = 0;
353362

354363
/// Interprets `src` as `&U`, and then reads `src` without moving the contained value.
355364
///

branches/auto/src/libcore/ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ pub unsafe fn read_and_zero<T>(dest: *mut T) -> T {
231231
}
232232

233233
/// Variant of read_and_zero that writes the specific drop-flag byte
234-
/// (which may be more apropriate than zero).
234+
/// (which may be more appropriate than zero).
235235
#[inline(always)]
236236
#[unstable(feature = "core",
237237
reason = "may play a larger role in std::ptr future extensions")]

branches/auto/src/libstd/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
#![feature(unboxed_closures)]
122122
#![feature(unicode)]
123123
#![feature(unsafe_destructor)]
124-
#![feature(unsafe_no_drop_flag)]
124+
#![feature(unsafe_no_drop_flag, filling_drop)]
125125
#![feature(macro_reexport)]
126126
#![feature(int_uint)]
127127
#![feature(unique)]

0 commit comments

Comments
 (0)