File tree Expand file tree Collapse file tree 7 files changed +7
-7
lines changed
branches/snap-stage3/src/test/run-pass Expand file tree Collapse file tree 7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 1088006ed9a66f7bf7f4d4768b60b8bf165c160e
4
+ refs/heads/snap-stage3: c19c24d193780bf889b62fe71770dfb3fbbae73f
5
5
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ struct cat {
5
5
6
6
impl cat : Drop {
7
7
fn finalize ( & self ) {
8
- self . done ( self . meows ) ;
8
+ ( self . done ) ( self . meows ) ;
9
9
}
10
10
}
11
11
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ type kitty_info = {kitty: cat};
12
12
13
13
// Code compiles and runs successfully if we add a + before the first arg
14
14
fn nyan ( kitty : cat , _kitty_info : kitty_info ) {
15
- kitty. meow ( ) ;
15
+ ( kitty. meow ) ( ) ;
16
16
}
17
17
18
18
fn main ( ) {
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ fn compute(i: mytype) -> int { return i.val + 20; }
4
4
5
5
fn main ( ) {
6
6
let myval = mytype ( { compute: compute, val: 30 } ) ;
7
- assert ( myval. compute ( myval) == 50 ) ;
7
+ assert ( ( myval. compute ) ( myval) == 50 ) ;
8
8
}
Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ fn main() {
10
10
let mut i = 3 ;
11
11
let cl_box = box_it ( || i += 1 ) ;
12
12
assert i == 3 ;
13
- cl_box. cl ( ) ;
13
+ ( cl_box. cl ) ( ) ;
14
14
assert i == 4 ;
15
15
}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ fn box_it(+x: &r/fn()) -> closure_box/&r {
7
7
}
8
8
9
9
fn call_static_closure ( cl : closure_box/& static ) {
10
- cl. cl ( ) ;
10
+ ( cl. cl ) ( ) ;
11
11
}
12
12
13
13
fn main ( ) {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ struct finish<T: Copy> {
7
7
8
8
impl < T : Copy > finish < T > : Drop {
9
9
fn finalize ( & self ) {
10
- self . arg . fin ( self . arg . val ) ;
10
+ ( self . arg . fin ) ( self . arg . val ) ;
11
11
}
12
12
}
13
13
You can’t perform that action at this time.
0 commit comments