File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
branches/snap-stage3/src/librustc/middle Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: deeca5d586bfaa4aa60246f671a8d611d38f6248
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: d1e23aeb0e3056a4da5c8aac86c10ae0353a8c2d
4
+ refs/heads/snap-stage3: 6659ae7d97b725e32a347a954f4e77118cc16a8a
5
5
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -285,15 +285,15 @@ enum DuplicateCheckingMode {
285
285
/// One local scope.
286
286
struct Rib {
287
287
bindings : RefCell < HashMap < Name , DefLike > > ,
288
- self_binding : @ mut Option < DefLike > ,
288
+ self_binding : RefCell < Option < DefLike > > ,
289
289
kind : RibKind ,
290
290
}
291
291
292
292
impl Rib {
293
293
fn new ( kind : RibKind ) -> Rib {
294
294
Rib {
295
295
bindings : RefCell :: new ( HashMap :: new ( ) ) ,
296
- self_binding : @ mut None ,
296
+ self_binding : RefCell :: new ( None ) ,
297
297
kind : kind
298
298
}
299
299
}
@@ -3883,7 +3883,7 @@ impl Resolver {
3883
3883
_ => false
3884
3884
} ;
3885
3885
let def_like = DlDef ( DefSelf ( self_node_id, mutable) ) ;
3886
- * function_value_rib. self_binding = Some ( def_like) ;
3886
+ function_value_rib. self_binding . set ( Some ( def_like) ) ;
3887
3887
}
3888
3888
}
3889
3889
@@ -4947,7 +4947,7 @@ impl Resolver {
4947
4947
let mut i = self . value_ribs . len ( ) ;
4948
4948
while i != 0 {
4949
4949
i -= 1 ;
4950
- match * self . value_ribs [ i] . self_binding {
4950
+ match self . value_ribs [ i] . self_binding . get ( ) {
4951
4951
Some ( def_like) => {
4952
4952
match self . upvarify ( self . value_ribs ,
4953
4953
i,
You can’t perform that action at this time.
0 commit comments