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.
4 // revisions:rpass1 rpass2 rpass3 rpass4
6 // ignore-asmjs wasm2js does not support source maps yet
7 // compile-flags: -g -Z query-dep-graph
8 // [rpass3]compile-flags: -Zincremental-relative-spans
9 // [rpass4]compile-flags: -Zincremental-relative-spans
11 #![feature(rustc_attrs)]
12 #![rustc_partition_codegened(module = "spans_significant_w_debuginfo", cfg = "rpass2")]
13 #![rustc_partition_codegened(module = "spans_significant_w_debuginfo", cfg = "rpass4")]
15 #[cfg(any(rpass1, rpass3))]
18 #[cfg(any(rpass2, rpass4))]
19 #[rustc_clean(except = "hir_owner,hir_owner_nodes,optimized_mir", cfg = "rpass2")]
20 #[rustc_clean(cfg = "rpass4")]