Skip to content

Commit c38a39b

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 166523 b: refs/heads/snap-stage3 c: 5b0c8ac h: refs/heads/master i: 166521: 61cea80 166519: ddaa866 v: v3
1 parent 07aacd1 commit c38a39b

File tree

123 files changed

+1109
-1613
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+1109
-1613
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 18842f89f084c52588fe7cffe07f87bf6e90796a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 4a4c89c7a4a763c253a97ff04647f52aca6a5490
4+
refs/heads/snap-stage3: 5b0c8acd69ba3e9e8bc84161f89f716b01e7c523
55
refs/heads/try: f5d619caf9f32458680fae55526b99582ca682dd
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/mk/rt.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ $$(JEMALLOC_LOCAL_$(1)): $$(JEMALLOC_DEPS) $$(MKFILE_DEPS)
180180
AR="$$(AR_$(1))" \
181181
RANLIB="$$(AR_$(1)) s" \
182182
CPPFLAGS="-I $(S)src/rt/" \
183-
EXTRA_CFLAGS="-g1 -ffunction-sections -fdata-sections"
183+
EXTRA_CFLAGS="-g1"
184184
$$(Q)$$(MAKE) -C "$$(JEMALLOC_BUILD_DIR_$(1))" build_lib_static
185185

186186
ifeq ($$(CFG_DISABLE_JEMALLOC),)

branches/snap-stage3/src/liballoc/arc.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,6 @@ pub struct Arc<T> {
117117
_ptr: *mut ArcInner<T>,
118118
}
119119

120-
unsafe impl<T: Sync + Send> Send for Arc<T> { }
121-
unsafe impl<T: Sync + Send> Sync for Arc<T> { }
122-
123-
124120
/// A weak pointer to an `Arc`.
125121
///
126122
/// Weak pointers will not keep the data inside of the `Arc` alive, and can be used to break cycles
@@ -133,19 +129,13 @@ pub struct Weak<T> {
133129
_ptr: *mut ArcInner<T>,
134130
}
135131

136-
unsafe impl<T: Sync + Send> Send for Weak<T> { }
137-
unsafe impl<T: Sync + Send> Sync for Weak<T> { }
138-
139132
struct ArcInner<T> {
140133
strong: atomic::AtomicUint,
141134
weak: atomic::AtomicUint,
142135
data: T,
143136
}
144137

145-
unsafe impl<T: Sync + Send> Send for ArcInner<T> {}
146-
unsafe impl<T: Sync + Send> Sync for ArcInner<T> {}
147-
148-
impl<T> Arc<T> {
138+
impl<T: Sync + Send> Arc<T> {
149139
/// Constructs a new `Arc<T>`.
150140
///
151141
/// # Examples
@@ -597,7 +587,6 @@ mod tests {
597587
use std::str::Str;
598588
use std::sync::atomic;
599589
use std::task;
600-
use std::kinds::Send;
601590
use std::vec::Vec;
602591
use super::{Arc, Weak, weak_count, strong_count};
603592
use std::sync::Mutex;

branches/snap-stage3/src/liballoc/boxed.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ use core::hash::{mod, Hash};
1919
use core::kinds::Sized;
2020
use core::mem;
2121
use core::option::Option;
22-
use core::ptr::Unique;
2322
use core::raw::TraitObject;
2423
use core::result::Result;
2524
use core::result::Result::{Ok, Err};
@@ -45,7 +44,7 @@ pub static HEAP: () = ();
4544
/// A type that represents a uniquely-owned value.
4645
#[lang = "owned_box"]
4746
#[unstable = "custom allocators will add an additional type parameter (with default)"]
48-
pub struct Box<T>(Unique<T>);
47+
pub struct Box<T>(*mut T);
4948

5049
#[stable]
5150
impl<T: Default> Default for Box<T> {

0 commit comments

Comments
 (0)