2017-10-26 14:21:37 +00: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 16:43:37 +00:00
|
|
|
//@ revisions:rpass1 rpass2
|
2017-10-26 14:21:37 +00:00
|
|
|
|
2021-03-22 18:21:55 +00:00
|
|
|
//@ compile-flags: -C overflow-checks=on -Z query-dep-graph
|
2017-10-26 14:21:37 +00:00
|
|
|
|
|
|
|
#![feature(rustc_attrs)]
|
2021-04-22 19:33:16 +00:00
|
|
|
#![rustc_partition_codegened(module = "spans_significant_w_panic", cfg = "rpass2")]
|
2017-10-26 14:21:37 +00:00
|
|
|
|
2022-10-31 16:43:37 +00:00
|
|
|
#[cfg(rpass1)]
|
2017-10-26 14:21:37 +00:00
|
|
|
pub fn main() {
|
2021-04-22 19:33:16 +00:00
|
|
|
if std::hint::black_box(false) {
|
|
|
|
panic!()
|
|
|
|
}
|
2017-10-26 14:21:37 +00:00
|
|
|
}
|
|
|
|
|
2022-10-31 16:43:37 +00:00
|
|
|
#[cfg(rpass2)]
|
|
|
|
#[rustc_clean(cfg = "rpass2")]
|
2017-10-26 14:21:37 +00:00
|
|
|
pub fn main() {
|
2021-04-22 19:33:16 +00:00
|
|
|
if std::hint::black_box(false) {
|
|
|
|
panic!()
|
|
|
|
}
|
2017-10-26 14:21:37 +00:00
|
|
|
}
|