File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 77#![ crate_type = "rlib" ]
88#![ feature( rustc_attrs) ]
99
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" ) ]
1212pub fn foo ( ) {
1313 #[ cfg( cfail1) ]
14- pub fn baz ( ) { } // order is different...
14+ pub fn baz ( ) { } // order is different...
1515
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.
1922
2023 #[ cfg( cfail2) ]
21- pub fn baz ( ) { } // order is different...
24+ pub fn baz ( ) { } // order is different...
2225
23- pub fn bap ( ) { } // neither does adding a new item
26+ pub fn bap ( ) { } // neither does adding a new item
2427}
You can’t perform that action at this time.
0 commit comments