]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/spans_significant_w_debuginfo.rs
Replace `HirBody` with `hir_owner_items` in tests
[rust.git] / src / test / incremental / spans_significant_w_debuginfo.rs
1 // This test makes sure that just changing a definition's location in the
2 // source file also changes its incr. comp. hash, if debuginfo is enabled.
3
4 // revisions:rpass1 rpass2
5
6 // ignore-asmjs wasm2js does not support source maps yet
7 // compile-flags: -g -Z query-dep-graph
8
9 #![feature(rustc_attrs)]
10
11 #[cfg(rpass1)]
12 pub fn main() {}
13
14 #[cfg(rpass2)]
15 #[rustc_dirty(label="Hir", cfg="rpass2")]
16 #[rustc_dirty(label="hir_owner_items", cfg="rpass2")]
17 pub fn main() {}