]> git.lizzy.rs Git - rust.git/blob - tests/incremental/spans_significant_w_debuginfo.rs
Optimize `TyKind::eq`.
[rust.git] / tests / 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 #![rustc_partition_codegened(module = "spans_significant_w_debuginfo", cfg = "rpass2")]
11
12 #[cfg(rpass1)]
13 pub fn main() {}
14
15 #[cfg(rpass2)]
16 #[rustc_clean(cfg = "rpass2")]
17 pub fn main() {}