88// option. This file may not be copied, modified, or distributed
99// except according to those terms.
1010
11- #![ feature( rustc_attrs) ]
12-
1311// ignore-pretty : (#23623) problems when ending with // comments
1412
1513// This test is ensuring that parameters are indeed dropped after
@@ -42,11 +40,11 @@ pub fn main() {
4240 // | | | | eval tail of foo
4341 // | | | +-- Make D(de_5, 6)
4442 // | | | | +-- 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+ // | | | | |
4945 2 , // | | +-- Drop D(de_2, 2)
46+ // | | | |
47+ 6 , // | | +-- Drop D(de_5, 6)
5048 // | | |
5149 1 , // | +-- Drop D(de_1, 1)
5250 // | |
@@ -66,8 +64,8 @@ fn test<'a>(log: d::Log<'a>) {
6664 d:: println ( & format ! ( "result {}" , result) ) ;
6765}
6866
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 > { {
7169 d:: println ( "entered foo" ) ;
7270 let de2 = de1. incr ( ) ; // creates D(de_2, 2)
7371 let de4 = {
@@ -76,7 +74,7 @@ fn foo<'a>(da0: D<'a>, de1: D<'a>) -> D<'a> {
7674 } ;
7775 d:: println ( "eval tail of foo" ) ;
7876 de4. incr ( ) . incr ( ) // creates D(de_5, 6) and D(de_6, 7)
79- }
77+ } }
8078
8179// This module provides simultaneous printouts of the dynamic extents
8280// of all of the D values, in addition to logging the order that each
0 commit comments