File tree 1 file changed +11
-8
lines changed
1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 7
7
#![ crate_type = "rlib" ]
8
8
#![ feature( rustc_attrs) ]
9
9
10
- #[ rustc_clean( label= "Hir" , cfg= "cfail2" ) ]
11
- #[ rustc_dirty( label= "HirBody" , cfg= "cfail2" ) ]
10
+ #[ rustc_clean( label = "Hir" , cfg = "cfail2" ) ]
11
+ #[ rustc_dirty( label = "HirBody" , cfg = "cfail2" ) ]
12
12
pub fn foo ( ) {
13
13
#[ cfg( cfail1) ]
14
- pub fn baz ( ) { } // order is different...
14
+ pub fn baz ( ) { } // order is different...
15
15
16
- #[ rustc_clean( label="Hir" , cfg="cfail2" ) ]
17
- #[ rustc_clean( label="HirBody" , cfg="cfail2" ) ]
18
- pub fn bar ( ) { } // but that doesn't matter.
16
+ // FIXME: Make "Hir" use `rustc_clean` here. Currently "Hir" includes a reference to
17
+ // the parent node, which is the statement holding this item. Changing the position of
18
+ // `bar` in `foo` will update that reference and make `Hir(bar)` dirty.
19
+ #[ rustc_dirty( label = "Hir" , cfg = "cfail2" ) ]
20
+ #[ rustc_clean( label = "HirBody" , cfg = "cfail2" ) ]
21
+ pub fn bar ( ) { } // but that doesn't matter.
19
22
20
23
#[ cfg( cfail2) ]
21
- pub fn baz ( ) { } // order is different...
24
+ pub fn baz ( ) { } // order is different...
22
25
23
- pub fn bap ( ) { } // neither does adding a new item
26
+ pub fn bap ( ) { } // neither does adding a new item
24
27
}
You can’t perform that action at this time.
0 commit comments