File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
branches/try/src/librustc_borrowck Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: edeb4f1c86cbf6af8ef9874d4b3af50f721ea1b8
3
3
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4
- refs/heads/try: 78d28336feb9f46ac5929023f45acdbb3f3379e5
4
+ refs/heads/try: f0419661f0d27f5662f03359ebf0091a4ac7b7b2
5
5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
6
6
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
7
7
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -138,8 +138,10 @@ interior mutability through a shared reference. Our example's `mutable` function
138
138
could be redefined as below:
139
139
140
140
```
141
+ use std::cell::Cell;
142
+
141
143
fn mutable() {
142
- let x = std::cell:: Cell::new(0u32);
144
+ let x = Cell::new(0u32);
143
145
foo(|| x.set(2));
144
146
}
145
147
```
You can’t perform that action at this time.
0 commit comments