File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 374ccfee9ab27350de07ddff20df4afcbdcd6a39
2
+ refs/heads/master: 833eb7ae1da68ad3ad0cb51b3b28f207c435b931
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
5
5
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
Original file line number Diff line number Diff line change 3
3
fn main ( ) {
4
4
let mut x = @mut @{ f: ~3 } ;
5
5
match x {
6
- @@{ f: b_x} => {
7
- assert * b_x == 3 ;
8
- assert ptr:: addr_of ( & ( x. f ) ) == ptr:: addr_of ( & ( b_x) ) ;
6
+ @@{ f: ref b_x} => {
7
+ assert * * b_x == 3 ;
8
+ assert ptr:: addr_of ( & ( x. f ) ) == ptr:: addr_of ( b_x) ;
9
9
10
10
* x = @{ f: ~4 } ;
11
11
12
- debug ! ( "ptr::addr_of(*b_x) = %x" , ptr:: addr_of( & ( * b_x) ) as uint) ;
13
- assert * b_x == 3 ;
14
- assert ptr:: addr_of ( & ( * x. f ) ) != ptr:: addr_of ( & ( * b_x) ) ;
12
+ debug ! ( "ptr::addr_of(*b_x) = %x" , ptr:: addr_of( & ( * * b_x) ) as uint) ;
13
+ assert * * b_x == 3 ;
14
+ assert ptr:: addr_of ( & ( * x. f ) ) != ptr:: addr_of ( & ( * * b_x) ) ;
15
15
}
16
16
}
17
17
}
You can’t perform that action at this time.
0 commit comments