8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- #![ feature( rustc_attrs) ]
12
-
13
11
// ignore-pretty : (#23623) problems when ending with // comments
14
12
15
13
// This test is ensuring that parameters are indeed dropped after
@@ -42,11 +40,11 @@ pub fn main() {
42
40
// | | | | eval tail of foo
43
41
// | | | +-- Make D(de_5, 6)
44
42
// | | | | +-- Make D(de_6, 7)
45
- 6 , // | | | +-- Drop D(de_5, 6)
46
- // | | | | |
47
- 5 , // | | | | +-- Drop D(de_4, 5)
48
- // | | | |
43
+ 5 , // | | | | | +-- Drop D(de_4, 5)
44
+ // | | | | |
49
45
2 , // | | +-- Drop D(de_2, 2)
46
+ // | | | |
47
+ 6 , // | | +-- Drop D(de_5, 6)
50
48
// | | |
51
49
1 , // | +-- Drop D(de_1, 1)
52
50
// | |
@@ -66,8 +64,8 @@ fn test<'a>(log: d::Log<'a>) {
66
64
d:: println ( & format ! ( "result {}" , result) ) ;
67
65
}
68
66
69
- # [ rustc_no_mir ] // FIXME #29855 MIR doesn't handle all drops correctly .
70
- fn foo < ' a > ( da0 : D < ' a > , de1 : D < ' a > ) -> D < ' a > {
67
+ // FIXME(#33490) Remove the double braces when old trans is gone .
68
+ fn foo < ' a > ( da0 : D < ' a > , de1 : D < ' a > ) -> D < ' a > { {
71
69
d:: println ( "entered foo" ) ;
72
70
let de2 = de1. incr ( ) ; // creates D(de_2, 2)
73
71
let de4 = {
@@ -76,7 +74,7 @@ fn foo<'a>(da0: D<'a>, de1: D<'a>) -> D<'a> {
76
74
} ;
77
75
d:: println ( "eval tail of foo" ) ;
78
76
de4. incr ( ) . incr ( ) // creates D(de_5, 6) and D(de_6, 7)
79
- }
77
+ } }
80
78
81
79
// This module provides simultaneous printouts of the dynamic extents
82
80
// of all of the D values, in addition to logging the order that each
0 commit comments