Skip to content

Commit 0672ea9

Browse files
committed
Update test
1 parent bd02f4a commit 0672ea9

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/test/incremental/ich_nested_items.rs

+11-8
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,21 @@
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")]
1212
pub 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
}

0 commit comments

Comments
 (0)