2017-10-26 09:21:37 -05:00
|
|
|
// This test makes sure that just changing a definition's location in the
|
|
|
|
// source file also changes its incr. comp. hash, if debuginfo is enabled.
|
|
|
|
|
2022-10-31 11:43:37 -05:00
|
|
|
//@ revisions:rpass1 rpass2
|
2017-10-26 09:21:37 -05:00
|
|
|
|
2021-03-22 13:21:55 -05:00
|
|
|
//@ compile-flags: -C overflow-checks=on -Z query-dep-graph
|
2017-10-26 09:21:37 -05:00
|
|
|
|
|
|
|
#![feature(rustc_attrs)]
|
2021-04-22 14:33:16 -05:00
|
|
|
#![rustc_partition_codegened(module = "spans_significant_w_panic", cfg = "rpass2")]
|
2017-10-26 09:21:37 -05:00
|
|
|
|
2022-10-31 11:43:37 -05:00
|
|
|
#[cfg(rpass1)]
|
2017-10-26 09:21:37 -05:00
|
|
|
pub fn main() {
|
2021-04-22 14:33:16 -05:00
|
|
|
if std::hint::black_box(false) {
|
|
|
|
panic!()
|
|
|
|
}
|
2017-10-26 09:21:37 -05:00
|
|
|
}
|
|
|
|
|
2022-10-31 11:43:37 -05:00
|
|
|
#[cfg(rpass2)]
|
|
|
|
#[rustc_clean(cfg = "rpass2")]
|
2017-10-26 09:21:37 -05:00
|
|
|
pub fn main() {
|
2021-04-22 14:33:16 -05:00
|
|
|
if std::hint::black_box(false) {
|
|
|
|
panic!()
|
|
|
|
}
|
2017-10-26 09:21:37 -05:00
|
|
|
}
|