2016-08-26 15:31:02 -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.
|
|
|
|
|
2024-02-22 06:10:29 -06:00
|
|
|
//@ revisions:rpass1 rpass2
|
2016-08-26 15:31:02 -05:00
|
|
|
|
2024-02-22 06:10:29 -06:00
|
|
|
//@ compile-flags: -g -Z query-dep-graph
|
2016-08-26 15:31:02 -05:00
|
|
|
|
|
|
|
#![feature(rustc_attrs)]
|
2021-04-22 14:33:16 -05:00
|
|
|
#![rustc_partition_codegened(module = "spans_significant_w_debuginfo", cfg = "rpass2")]
|
2016-08-26 15:31:02 -05:00
|
|
|
|
2022-10-31 11:43:37 -05:00
|
|
|
#[cfg(rpass1)]
|
2016-08-26 15:31:02 -05:00
|
|
|
pub fn main() {}
|
|
|
|
|
2022-10-31 11:43:37 -05:00
|
|
|
#[cfg(rpass2)]
|
|
|
|
#[rustc_clean(cfg = "rpass2")]
|
2016-08-26 15:31:02 -05:00
|
|
|
pub fn main() {}
|