Skip to content

Commit 4446d44

Browse files
committed
Remove SNAP comments
1 parent 31bb4ab commit 4446d44

File tree

6 files changed

+26
-26
lines changed

6 files changed

+26
-26
lines changed

src/liballoc/boxed.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ use core::ops::{Deref, DerefMut};
6262
use core::ptr::{Unique};
6363
use core::raw::{TraitObject};
6464

65-
#[cfg(not(stage0))] // SNAP c64d671
65+
#[cfg(not(stage0))]
6666
use core::marker::Unsize;
67-
#[cfg(not(stage0))] // SNAP c64d671
67+
#[cfg(not(stage0))]
6868
use core::ops::CoerceUnsized;
6969

7070
/// A value that represents the heap. This is the default place that the `box`
@@ -396,5 +396,5 @@ impl<'a,A,R> FnOnce<A> for Box<FnBox<A,Output=R>+Send+'a> {
396396
}
397397
}
398398

399-
#[cfg(not(stage0))] // SNAP c64d671
399+
#[cfg(not(stage0))]
400400
impl<T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<Box<U>> for Box<T> {}

src/liballoc/rc.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ impl<T> !marker::Sync for Rc<T> {}
228228
#[cfg(not(stage0))]
229229
impl<T: ?Sized> !marker::Sync for Rc<T> {}
230230

231-
#[cfg(not(stage0))] // SNAP c64d671
231+
#[cfg(not(stage0))]
232232
impl<T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<Rc<U>> for Rc<T> {}
233233

234234
impl<T> Rc<T> {
@@ -459,7 +459,7 @@ impl<T: ?Sized> Deref for Rc<T> {
459459
}
460460
}
461461

462-
#[cfg(stage0)] // SNAP c64d671
462+
#[cfg(stage0)]
463463
#[stable(feature = "rust1", since = "1.0.0")]
464464
impl<T> Drop for Rc<T> {
465465
/// Drops the `Rc<T>`.
@@ -510,7 +510,7 @@ impl<T> Drop for Rc<T> {
510510
}
511511
}
512512

513-
#[cfg(not(stage0))] // SNAP c64d671
513+
#[cfg(not(stage0))]
514514
#[stable(feature = "rust1", since = "1.0.0")]
515515
impl<T: ?Sized> Drop for Rc<T> {
516516
/// Drops the `Rc<T>`.
@@ -930,7 +930,7 @@ impl<T: ?Sized> Weak<T> {
930930
}
931931
}
932932

933-
#[cfg(stage0)] // SNAP c64d671
933+
#[cfg(stage0)]
934934
#[stable(feature = "rust1", since = "1.0.0")]
935935
impl<T> Drop for Weak<T> {
936936
/// Drops the `Weak<T>`.
@@ -975,7 +975,7 @@ impl<T> Drop for Weak<T> {
975975
}
976976
}
977977

978-
#[cfg(not(stage0))] // SNAP c64d671
978+
#[cfg(not(stage0))]
979979
#[stable(feature = "rust1", since = "1.0.0")]
980980
impl<T: ?Sized> Drop for Weak<T> {
981981
/// Drops the `Weak<T>`.

src/libcore/marker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub trait Sized {
5555

5656
/// Types that can be "unsized" to a dynamically sized type.
5757
#[unstable(feature = "core")]
58-
#[cfg(not(stage0))] // SNAP c64d671
58+
#[cfg(not(stage0))]
5959
#[lang="unsize"]
6060
pub trait Unsize<T> {
6161
// Empty.

src/libcore/mem.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub fn size_of<T>() -> usize {
9595
///
9696
/// assert_eq!(4, mem::size_of_val(&5i32));
9797
/// ```
98-
#[cfg(not(stage0))] // SNAP c64d671
98+
#[cfg(not(stage0))]
9999
#[inline]
100100
#[stable(feature = "rust1", since = "1.0.0")]
101101
pub fn size_of_val<T: ?Sized>(val: &T) -> usize {
@@ -111,7 +111,7 @@ pub fn size_of_val<T: ?Sized>(val: &T) -> usize {
111111
///
112112
/// assert_eq!(4, mem::size_of_val(&5i32));
113113
/// ```
114-
#[cfg(stage0)] // SNAP c64d671
114+
#[cfg(stage0)]
115115
#[inline]
116116
#[stable(feature = "rust1", since = "1.0.0")]
117117
pub fn size_of_val<T>(_val: &T) -> usize {
@@ -144,7 +144,7 @@ pub fn min_align_of<T>() -> usize {
144144
///
145145
/// assert_eq!(4, mem::min_align_of_val(&5i32));
146146
/// ```
147-
#[cfg(not(stage0))] // SNAP c64d671
147+
#[cfg(not(stage0))]
148148
#[inline]
149149
#[stable(feature = "rust1", since = "1.0.0")]
150150
pub fn min_align_of_val<T: ?Sized>(val: &T) -> usize {
@@ -160,7 +160,7 @@ pub fn min_align_of_val<T: ?Sized>(val: &T) -> usize {
160160
///
161161
/// assert_eq!(4, mem::min_align_of_val(&5i32));
162162
/// ```
163-
#[cfg(stage0)] // SNAP c64d671
163+
#[cfg(stage0)]
164164
#[inline]
165165
#[stable(feature = "rust1", since = "1.0.0")]
166166
pub fn min_align_of_val<T>(_val: &T) -> usize {

src/libcore/nonzero.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
use marker::Sized;
1414
use ops::Deref;
15-
#[cfg(not(stage0))] // SNAP c64d671
15+
#[cfg(not(stage0))]
1616
use ops::CoerceUnsized;
1717

1818
/// Unsafe trait to indicate what types are usable with the NonZero struct
@@ -57,5 +57,5 @@ impl<T: Zeroable> Deref for NonZero<T> {
5757
}
5858
}
5959

60-
#[cfg(not(stage0))] // SNAP c64d671
60+
#[cfg(not(stage0))]
6161
impl<T: Zeroable+CoerceUnsized<U>, U: Zeroable> CoerceUnsized<NonZero<U>> for NonZero<T> {}

src/libcore/ops.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
use marker::Sized;
7171
use fmt;
7272

73-
#[cfg(not(stage0))] // SNAP c64d671
73+
#[cfg(not(stage0))]
7474
use marker::Unsize;
7575

7676
/// The `Drop` trait is used to run some code when a value goes out of scope. This
@@ -1214,39 +1214,39 @@ mod impls {
12141214
/// Trait that indicates that this is a pointer or a wrapper for one,
12151215
/// where unsizing can be performed on the pointee.
12161216
#[unstable(feature = "core")]
1217-
#[cfg(not(stage0))] // SNAP c64d671
1217+
#[cfg(not(stage0))]
12181218
#[lang="coerce_unsized"]
12191219
pub trait CoerceUnsized<T> {
12201220
// Empty.
12211221
}
12221222

12231223
// &mut T -> &mut U
1224-
#[cfg(not(stage0))] // SNAP c64d671
1224+
#[cfg(not(stage0))]
12251225
impl<'a, T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<&'a mut U> for &'a mut T {}
12261226
// &mut T -> &U
1227-
#[cfg(not(stage0))] // SNAP c64d671
1227+
#[cfg(not(stage0))]
12281228
impl<'a, 'b: 'a, T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<&'a U> for &'b mut T {}
12291229
// &mut T -> *mut U
1230-
#[cfg(not(stage0))] // SNAP c64d671
1230+
#[cfg(not(stage0))]
12311231
impl<'a, T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<*mut U> for &'a mut T {}
12321232
// &mut T -> *const U
1233-
#[cfg(not(stage0))] // SNAP c64d671
1233+
#[cfg(not(stage0))]
12341234
impl<'a, T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for &'a mut T {}
12351235

12361236
// &T -> &U
1237-
#[cfg(not(stage0))] // SNAP c64d671
1237+
#[cfg(not(stage0))]
12381238
impl<'a, 'b: 'a, T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<&'a U> for &'b T {}
12391239
// &T -> *const U
1240-
#[cfg(not(stage0))] // SNAP c64d671
1240+
#[cfg(not(stage0))]
12411241
impl<'a, T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for &'a T {}
12421242

12431243
// *mut T -> *mut U
1244-
#[cfg(not(stage0))] // SNAP c64d671
1244+
#[cfg(not(stage0))]
12451245
impl<T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<*mut U> for *mut T {}
12461246
// *mut T -> *const U
1247-
#[cfg(not(stage0))] // SNAP c64d671
1247+
#[cfg(not(stage0))]
12481248
impl<T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for *mut T {}
12491249

12501250
// *const T -> *const U
1251-
#[cfg(not(stage0))] // SNAP c64d671
1251+
#[cfg(not(stage0))]
12521252
impl<T: ?Sized+Unsize<U>, U: ?Sized> CoerceUnsized<*const U> for *const T {}

0 commit comments

Comments
 (0)