Skip to content

Commit 3e6c574

Browse files
committed
---
yaml --- r: 211184 b: refs/heads/try c: d416fc1 h: refs/heads/master v: v3
1 parent a92397c commit 3e6c574

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5-
refs/heads/try: 04ab4a34719979d7f17b4c0df82ac8dbf08af1ad
5+
refs/heads/try: d416fc1d40e39661153b2183726f7e71f51d24e3
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/libstd/sync/mpsc/spsc_queue.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,10 @@ unsafe impl<T: Send> Sync for Queue<T> { }
8080

8181
impl<T> Node<T> {
8282
fn new() -> *mut Node<T> {
83-
unsafe {
84-
boxed::into_raw(box Node {
85-
value: None,
86-
next: AtomicPtr::new(ptr::null_mut::<Node<T>>()),
87-
})
88-
}
83+
boxed::into_raw(box Node {
84+
value: None,
85+
next: AtomicPtr::new(ptr::null_mut::<Node<T>>()),
86+
})
8987
}
9088
}
9189

0 commit comments

Comments
 (0)