]> git.lizzy.rs Git - rust.git/commitdiff
register snapshots
authorDaniel Micay <danielmicay@gmail.com>
Sat, 3 Aug 2013 16:21:57 +0000 (12:21 -0400)
committerDaniel Micay <danielmicay@gmail.com>
Sun, 4 Aug 2013 01:09:28 +0000 (21:09 -0400)
src/libstd/ptr.rs
src/libstd/unstable/atomics.rs
src/libstd/unstable/intrinsics.rs
src/snapshots.txt

index 3af4769fcdb43d2436f6aea63cbc624d1b38d767..55c18faf83deeb5a9eed4044d551907ccfa36fe3 100644 (file)
@@ -13,8 +13,6 @@
 use cast;
 use clone::Clone;
 use option::{Option, Some, None};
-#[cfg(stage0)]
-use sys;
 use unstable::intrinsics;
 use util::swap;
 
 
 /// Calculate the offset from a pointer
 #[inline]
-#[cfg(stage0)]
-pub fn offset<T>(ptr: *T, count: int) -> *T {
-    (ptr as uint + (count as uint) * sys::size_of::<T>()) as *T
-}
-
-/// Calculate the offset from a const pointer
-#[inline]
-#[cfg(stage0)]
-pub fn const_offset<T>(ptr: *const T, count: int) -> *const T {
-    (ptr as uint + (count as uint) * sys::size_of::<T>()) as *T
-}
-
-/// Calculate the offset from a mut pointer
-#[inline]
-#[cfg(stage0)]
-pub fn mut_offset<T>(ptr: *mut T, count: int) -> *mut T {
-    (ptr as uint + (count as uint) * sys::size_of::<T>()) as *mut T
-}
-
-/// Calculate the offset from a pointer
-#[inline]
-#[cfg(not(stage0))]
 pub fn offset<T>(ptr: *T, count: int) -> *T {
     unsafe { intrinsics::offset(ptr, count) }
 }
 
 /// Calculate the offset from a const pointer
 #[inline]
-#[cfg(not(stage0))]
 pub fn const_offset<T>(ptr: *const T, count: int) -> *const T {
     unsafe { intrinsics::offset(ptr as *T, count) }
 }
 
 /// Calculate the offset from a mut pointer
 #[inline]
-#[cfg(not(stage0))]
 pub fn mut_offset<T>(ptr: *mut T, count: int) -> *mut T {
     unsafe { intrinsics::offset(ptr as *T, count) as *mut T }
 }
index 6f66cdbe8a78b851c4b113c42d938d9875753f38..2cfe63d99266f97531c16f21781254cef0b92f72 100644 (file)
@@ -509,7 +509,7 @@ pub unsafe fn atomic_xor<T>(dst: &mut T, val: T, order: Ordering) -> T {
  *
  * Accepts `Acquire`, `Release`, `AcqRel` and `SeqCst` orderings.
  */
-#[inline] #[cfg(not(stage0))]
+#[inline]
 pub fn fence(order: Ordering) {
     unsafe {
         match order {
index 50d9c7e4dede07ca40244ceb5fdbc15768a8a1a1..1270a80c354990aeee037520b1fe4f1221faf192 100644 (file)
@@ -256,13 +256,9 @@ fn visit_leave_fn(&self, purity: uint, proto: uint,
     pub fn atomic_umax_acqrel(dst: &mut int, src: int) -> int;
     pub fn atomic_umax_relaxed(dst: &mut int, src: int) -> int;
 
-    #[cfg(not(stage0))]
     pub fn atomic_fence();
-    #[cfg(not(stage0))]
     pub fn atomic_fence_acq();
-    #[cfg(not(stage0))]
     pub fn atomic_fence_rel();
-    #[cfg(not(stage0))]
     pub fn atomic_fence_acqrel();
 
     /// The size of a type in bytes.
@@ -325,7 +321,6 @@ fn visit_leave_fn(&self, purity: uint, proto: uint,
     ///
     /// This is implemented as an intrinsic to avoid converting to and from an
     /// integer, since the conversion would throw away aliasing information.
-    #[cfg(not(stage0))]
     pub fn offset<T>(dst: *T, offset: int) -> *T;
 
     /// Equivalent to the `llvm.memcpy.p0i8.0i8.i32` intrinsic, with a size of
index 42da4f7d4331f1d583dbe3727702050ada8f6a8d..d5c27fb74eb950f8f83087cf8529f50052f22b03 100644 (file)
@@ -1,3 +1,11 @@
+S 2013-08-03 18e3db7
+  freebsd-x86_64 addf91b20416bf21a7c53ea9508bc302ec957ce9
+  linux-i386 ce103c323c0a0b75d1307014f1d6f8ff4d03c873
+  linux-x86_64 6828d854d174c7b514a4350dfdd92c059df059d6
+  macos-i386 ef4b67859146cacce54367f9243b5da9f9fde386
+  macos-x86_64 936d4e170d8207b40df64c5eca3a3a27b3eee08a
+  winnt-i386 332f0181fb68fcbeaaae342d5fb22889aa902152
+
 S 2013-07-31 389aba0
   freebsd-x86_64 c9783bb5723404be8ae371d265bbb9a1c679e4db
   linux-i386 7413d98325b23dc461ced92757e5e19bec750dbd