]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/spans_significant_w_debuginfo.rs
Auto merge of #98912 - nrc:provider-it, r=yaahc
[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 rpass3 rpass4
5
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
10
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")]
14
15 #[cfg(any(rpass1, rpass3))]
16 pub fn main() {}
17
18 #[cfg(any(rpass2, rpass4))]
19 #[rustc_clean(except = "hir_owner,hir_owner_nodes,optimized_mir", cfg = "rpass2")]
20 #[rustc_clean(cfg = "rpass4")]
21 pub fn main() {}