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.
|
|
|
|
|
2022-10-31 11:43:37 -05:00
|
|
|
// revisions:rpass1 rpass2
|
2016-08-26 15:31:02 -05:00
|
|
|
|
2019-08-17 00:08:01 -05:00
|
|
|
// ignore-asmjs wasm2js does not support source maps yet
|
2016-08-26 15:31:02 -05:00
|
|
|
// compile-flags: -g -Z query-dep-graph
|
|
|
|
|
|
|
|
#![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() {}
|