Skip to content

Commit 41a0f7b

Browse files
committed
---
yaml --- r: 35437 b: refs/heads/master c: 833eb7a h: refs/heads/master i: 35435: ca8a222 v: v3
1 parent 28159a6 commit 41a0f7b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
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: 374ccfee9ab27350de07ddff20df4afcbdcd6a39
2+
refs/heads/master: 833eb7ae1da68ad3ad0cb51b3b28f207c435b931
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024

trunk/src/test/run-pass/borrowck-preserve-box-in-pat.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
fn main() {
44
let mut x = @mut @{f: ~3};
55
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);
99

1010
*x = @{f: ~4};
1111

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));
1515
}
1616
}
1717
}

0 commit comments

Comments
 (0)