Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0672ea9

Browse files
committedFeb 12, 2020
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

Lines changed: 11 additions & 8 deletions
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)
Please sign in to comment.