2016-08-26 20:31:02 +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
|
2016-08-26 20:31:02 +00:00
|
|
|
|
2019-08-17 05:08:01 +00:00
|
|
|
// ignore-asmjs wasm2js does not support source maps yet
|
2016-08-26 20:31:02 +00:00
|
|
|
// compile-flags: -g -Z query-dep-graph
|
|
|
|
|
|
|
|
#![feature(rustc_attrs)]
|
2021-04-22 19:33:16 +00:00
|
|
|
#![rustc_partition_codegened(module = "spans_significant_w_debuginfo", cfg = "rpass2")]
|
2016-08-26 20:31:02 +00:00
|
|
|
|
2022-10-31 16:43:37 +00:00
|
|
|
#[cfg(rpass1)]
|
2016-08-26 20:31:02 +00:00
|
|
|
pub fn main() {}
|
|
|
|
|
2022-10-31 16:43:37 +00:00
|
|
|
#[cfg(rpass2)]
|
|
|
|
#[rustc_clean(cfg = "rpass2")]
|
2016-08-26 20:31:02 +00:00
|
|
|
pub fn main() {}
|