Skip to content

Commit 7a2c1be

Browse files
committed
---
yaml --- r: 181739 b: refs/heads/master c: 480ea5a h: refs/heads/master i: 181737: 85bdcd5 181735: 8b2c406 v: v3
1 parent 8c4ada8 commit 7a2c1be

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
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: a97588c34b1d7aa442706ce2cf7a66375f695c6b
2+
refs/heads/master: 480ea5ac55d99b9cf52f4df157a532005cd3ed75
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 3cf3483ffd586b3042fda31c66d5afad7415e715
55
refs/heads/try: ccf8fedf1cffcb8f6f3581d53d220039e192fe77

trunk/src/libcore/cell.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@
7878
//! use std::cell::RefCell;
7979
//!
8080
//! struct Graph {
81-
//! edges: Vec<(uint, uint)>,
82-
//! span_tree_cache: RefCell<Option<Vec<(uint, uint)>>>
81+
//! edges: Vec<(i32, i32)>,
82+
//! span_tree_cache: RefCell<Option<Vec<(i32, i32)>>>
8383
//! }
8484
//!
8585
//! impl Graph {
86-
//! fn minimum_spanning_tree(&self) -> Vec<(uint, uint)> {
86+
//! fn minimum_spanning_tree(&self) -> Vec<(i32, i32)> {
8787
//! // Create a new scope to contain the lifetime of the
8888
//! // dynamic borrow
8989
//! {
@@ -104,7 +104,7 @@
104104
//! // This is the major hazard of using `RefCell`.
105105
//! self.minimum_spanning_tree()
106106
//! }
107-
//! # fn calc_span_tree(&self) -> Vec<(uint, uint)> { vec![] }
107+
//! # fn calc_span_tree(&self) -> Vec<(i32, i32)> { vec![] }
108108
//! }
109109
//! ```
110110
//!
@@ -125,7 +125,7 @@
125125
//!
126126
//! struct RcBox<T> {
127127
//! value: T,
128-
//! refcount: Cell<uint>
128+
//! refcount: Cell<usize>
129129
//! }
130130
//!
131131
//! impl<T> Clone for Rc<T> {
@@ -279,8 +279,8 @@ pub enum BorrowState {
279279
}
280280

281281
// Values [1, MAX-1] represent the number of `Ref` active
282-
// (will not outgrow its range since `uint` is the size of the address space)
283-
type BorrowFlag = uint;
282+
// (will not outgrow its range since `usize` is the size of the address space)
283+
type BorrowFlag = usize;
284284
const UNUSED: BorrowFlag = 0;
285285
const WRITING: BorrowFlag = -1;
286286

0 commit comments

Comments
 (0)