]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/spans_significant_w_panic.rs
Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup
[rust.git] / src / test / incremental / spans_significant_w_panic.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 // compile-flags: -C overflow-checks=on -Z query-dep-graph
7
8 #![feature(rustc_attrs)]
9
10 #[cfg(rpass1)]
11 pub fn main() {
12     let _ = 0u8 + 1;
13 }
14
15 #[cfg(rpass2)]
16 #[rustc_clean(except="hir_owner,hir_owner_nodes,optimized_mir", cfg="rpass2")]
17 pub fn main() {
18     let _ = 0u8 + 1;
19 }