Skip to content

Commit 9bf1c17

Browse files
committed
---
yaml --- r: 67508 b: refs/heads/master c: 8ec70ae h: refs/heads/master v: v3
1 parent e4cfecb commit 9bf1c17

File tree

4 files changed

+10
-84
lines changed

4 files changed

+10
-84
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: b57ffef37e6e2196ad948ab2f6944d242c3aaaf1
2+
refs/heads/master: 8ec70ae5de0e33ab62732c59b0b2b0620cb8dce9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/src/libstd/unstable/atomics.rs

Lines changed: 0 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -205,18 +205,6 @@ impl AtomicInt {
205205
pub fn fetch_sub(&mut self, val: int, order: Ordering) -> int {
206206
unsafe { atomic_sub(&mut self.v, val, order) }
207207
}
208-
209-
/// Returns the old value
210-
#[inline]
211-
pub fn fetch_min(&mut self, val: int, order: Ordering) -> int {
212-
unsafe { atomic_min(&mut self.v, val, order) }
213-
}
214-
215-
/// Returns the old value
216-
#[inline]
217-
pub fn fetch_max(&mut self, val: int, order: Ordering) -> int {
218-
unsafe { atomic_max(&mut self.v, val, order) }
219-
}
220208
}
221209

222210
impl AtomicUint {
@@ -255,18 +243,6 @@ impl AtomicUint {
255243
pub fn fetch_sub(&mut self, val: uint, order: Ordering) -> uint {
256244
unsafe { atomic_sub(&mut self.v, val, order) }
257245
}
258-
259-
/// Returns the old value
260-
#[inline]
261-
pub fn fetch_min(&mut self, val: uint, order: Ordering) -> uint {
262-
unsafe { atomic_umin(&mut self.v, val, order) }
263-
}
264-
265-
/// Returns the old value
266-
#[inline]
267-
pub fn fetch_max(&mut self, val: uint, order: Ordering) -> uint {
268-
unsafe { atomic_umax(&mut self.v, val, order) }
269-
}
270246
}
271247

272248
impl<T> AtomicPtr<T> {
@@ -515,64 +491,6 @@ pub unsafe fn atomic_xor<T>(dst: &mut T, val: T, order: Ordering) -> T {
515491
}
516492

517493

518-
#[inline]
519-
pub unsafe fn atomic_max<T>(dst: &mut T, val: T, order: Ordering) -> T {
520-
let dst = cast::transmute(dst);
521-
let val = cast::transmute(val);
522-
523-
cast::transmute(match order {
524-
Acquire => intrinsics::atomic_max_acq(dst, val),
525-
Release => intrinsics::atomic_max_rel(dst, val),
526-
AcqRel => intrinsics::atomic_max_acqrel(dst, val),
527-
Relaxed => intrinsics::atomic_max_relaxed(dst, val),
528-
_ => intrinsics::atomic_max(dst, val)
529-
})
530-
}
531-
532-
533-
#[inline]
534-
pub unsafe fn atomic_min<T>(dst: &mut T, val: T, order: Ordering) -> T {
535-
let dst = cast::transmute(dst);
536-
let val = cast::transmute(val);
537-
538-
cast::transmute(match order {
539-
Acquire => intrinsics::atomic_min_acq(dst, val),
540-
Release => intrinsics::atomic_min_rel(dst, val),
541-
AcqRel => intrinsics::atomic_min_acqrel(dst, val),
542-
Relaxed => intrinsics::atomic_min_relaxed(dst, val),
543-
_ => intrinsics::atomic_min(dst, val)
544-
})
545-
}
546-
547-
#[inline]
548-
pub unsafe fn atomic_umax<T>(dst: &mut T, val: T, order: Ordering) -> T {
549-
let dst = cast::transmute(dst);
550-
let val = cast::transmute(val);
551-
552-
cast::transmute(match order {
553-
Acquire => intrinsics::atomic_umax_acq(dst, val),
554-
Release => intrinsics::atomic_umax_rel(dst, val),
555-
AcqRel => intrinsics::atomic_umax_acqrel(dst, val),
556-
Relaxed => intrinsics::atomic_umax_relaxed(dst, val),
557-
_ => intrinsics::atomic_umax(dst, val)
558-
})
559-
}
560-
561-
562-
#[inline]
563-
pub unsafe fn atomic_umin<T>(dst: &mut T, val: T, order: Ordering) -> T {
564-
let dst = cast::transmute(dst);
565-
let val = cast::transmute(val);
566-
567-
cast::transmute(match order {
568-
Acquire => intrinsics::atomic_umin_acq(dst, val),
569-
Release => intrinsics::atomic_umin_rel(dst, val),
570-
AcqRel => intrinsics::atomic_umin_acqrel(dst, val),
571-
Relaxed => intrinsics::atomic_umin_relaxed(dst, val),
572-
_ => intrinsics::atomic_umin(dst, val)
573-
})
574-
}
575-
576494
/**
577495
* An atomic fence.
578496
*

trunk/src/libsyntax/ext/expand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ pub fn std_macros() -> @str {
683683
($cond:expr) => {
684684
if !$cond {
685685
::std::sys::FailWithCause::fail_with(
686-
~\"assertion failed: \" + stringify!($cond), file!(), line!())
686+
\"assertion failed: \" + stringify!($cond), file!(), line!())
687687
}
688688
};
689689
($cond:expr, $msg:expr) => {

trunk/src/snapshots.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
S 2013-07-31 389aba0
2+
freebsd-x86_64 c9783bb5723404be8ae371d265bbb9a1c679e4db
3+
linux-i386 7413d98325b23dc461ced92757e5e19bec750dbd
4+
linux-x86_64 cd3fedbb02423f330aedaae6173914659ccb98e5
5+
macos-i386 fef296e534b5e12d382708e658370957d5df9a0e
6+
macos-x86_64 57bd3da763607386a08b2a50ecf5a7778aea8356
7+
winnt-i386 a532aaabf043370a21458fd6874be41d432b5696
8+
19
S 2013-07-25 4cf3072
210
macos-i386 f682d6e9ca0d56768bd36a0c05b7e58e12694dff
311
macos-x86_64 2f4e85c9756ba31a04fa8dd1c999fbaf8e1d3d1a

0 commit comments

Comments
 (0)