Skip to content

Commit 3d5a185

Browse files
brsonthestinger
authored andcommitted
---
yaml --- r: 63851 b: refs/heads/snap-stage3 c: 22b7eb3 h: refs/heads/master i: 63849: 29a67a1 63847: 744bba0 v: v3
1 parent 921d2aa commit 3d5a185

File tree

8 files changed

+12
-8
lines changed

8 files changed

+12
-8
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: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 4af7ebcd8f72356880abccc411a1632e8f07e1c1
4+
refs/heads/snap-stage3: 22b7eb38024afc38dbcfaa18796371b7d6b5b1d0
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ struct RWARCInner<T> { lock: RWlock, failed: bool, data: T }
276276
*
277277
* Unlike mutex_arcs, rw_arcs are safe, because they cannot be nested.
278278
*/
279-
#[mutable]
279+
#[mutable] // XXX remove after snap
280+
#[no_freeze]
280281
struct RWARC<T> {
281282
x: UnsafeAtomicRcBox<RWARCInner<T>>,
282283
}

branches/snap-stage3/src/libextra/arena.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ struct Chunk {
6565
is_pod: bool,
6666
}
6767

68-
#[mutable]
68+
#[mutable] // XXX remove after snap
69+
#[no_freeze]
6970
pub struct Arena {
7071
// The head is separated out from the list as a unbenchmarked
7172
// microoptimization, to avoid needing to case on the list to

branches/snap-stage3/src/libextra/rc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ struct RcMutBox<T> {
169169
/// Mutable reference counted pointer type
170170
#[non_owned]
171171
#[no_send]
172-
#[mutable]
172+
#[mutable] // XXX remove after snap
173+
#[no_freeze]
173174
#[unsafe_no_drop_flag]
174175
pub struct RcMut<T> {
175176
priv ptr: *mut RcMutBox<T>,

branches/snap-stage3/src/librustc/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2204,7 +2204,7 @@ pub fn type_contents(cx: ctxt, ty: t) -> TypeContents {
22042204
}
22052205

22062206
fn apply_tc_attr(cx: ctxt, did: def_id, mut tc: TypeContents) -> TypeContents {
2207-
if has_attr(cx, did, "mutable") {
2207+
if has_attr(cx, did, "no_freeze") {
22082208
tc = tc + TC_MUTABLE;
22092209
}
22102210
if has_attr(cx, did, "no_send") {

branches/snap-stage3/src/libstd/cell.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ A dynamic, mutable location.
2222
Similar to a mutable option type, but friendlier.
2323
*/
2424

25-
#[mutable]
25+
#[mutable] // XXX remove after snap
26+
#[no_freeze]
2627
#[deriving(Clone, DeepClone, Eq)]
2728
#[allow(missing_doc)]
2829
pub struct Cell<T> {

branches/snap-stage3/src/test/compile-fail/mutable-enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[mutable]
11+
#[no_freeze]
1212
enum Foo { A }
1313

1414
fn bar<T: Freeze>(_: T) {}

branches/snap-stage3/src/test/compile-fail/mutable-struct.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[mutable]
11+
#[no_freeze]
1212
struct Foo { a: int }
1313

1414
fn bar<T: Freeze>(_: T) {}

0 commit comments

Comments
 (0)