Skip to content

Commit 4b94fc7

Browse files
committed
---
yaml --- r: 150189 b: refs/heads/try2 c: 034e138 h: refs/heads/master i: 150187: fa26d26 v: v3
1 parent c6396de commit 4b94fc7

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 16e07602f9281a846f5142f8cd6d8f578bcbcf37
8+
refs/heads/try2: 034e1382af9863f2bdb8b19a83521ebb784db794
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libstd/cell.rs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,15 @@ use ty::Unsafe;
2222
/// A mutable memory location that admits only `Pod` data.
2323
pub struct Cell<T> {
2424
priv value: Unsafe<T>,
25-
priv marker1: marker::NoFreeze,
26-
priv marker2: marker::NoShare,
25+
priv noshare: marker::NoShare,
2726
}
2827

2928
impl<T:Pod> Cell<T> {
3029
/// Creates a new `Cell` containing the given value.
3130
pub fn new(value: T) -> Cell<T> {
3231
Cell {
3332
value: Unsafe::new(value),
34-
marker1: marker::NoFreeze,
35-
marker2: marker::NoShare,
33+
noshare: marker::NoShare,
3634
}
3735
}
3836

@@ -73,9 +71,8 @@ impl<T: fmt::Show> fmt::Show for Cell<T> {
7371
pub struct RefCell<T> {
7472
priv value: Unsafe<T>,
7573
priv borrow: BorrowFlag,
76-
priv marker1: marker::NoFreeze,
77-
priv marker2: marker::NoPod,
78-
priv marker3: marker::NoShare,
74+
priv nopod: marker::NoPod,
75+
priv noshare: marker::NoShare,
7976
}
8077

8178
// Values [1, MAX-1] represent the number of `Ref` active
@@ -88,10 +85,9 @@ impl<T> RefCell<T> {
8885
/// Create a new `RefCell` containing `value`
8986
pub fn new(value: T) -> RefCell<T> {
9087
RefCell {
91-
marker1: marker::NoFreeze,
92-
marker2: marker::NoPod,
93-
marker3: marker::NoShare,
9488
value: Unsafe::new(value),
89+
nopod: marker::NoPod,
90+
noshare: marker::NoShare,
9591
borrow: UNUSED,
9692
}
9793
}

0 commit comments

Comments
 (0)