Skip to content

Commit 689dbb4

Browse files
committed
---
yaml --- r: 183742 b: refs/heads/beta c: 480ea5a h: refs/heads/master v: v3
1 parent 4f5fa23 commit 689dbb4

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
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: a97588c34b1d7aa442706ce2cf7a66375f695c6b
34+
refs/heads/beta: 480ea5ac55d99b9cf52f4df157a532005cd3ed75
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: eb836bf767aa1d8d4cba488a9091cde3c0ab4b2f

branches/beta/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)