2016-08-26 16:31:02 -04: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.
|
|
|
|
|
|
|
|
// revisions:rpass1 rpass2
|
|
|
|
|
2019-08-16 22:08:01 -07:00
|
|
|
// ignore-asmjs wasm2js does not support source maps yet
|
2016-08-26 16:31:02 -04:00
|
|
|
// compile-flags: -g -Z query-dep-graph
|
|
|
|
|
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
|
|
|
|
#[cfg(rpass1)]
|
|
|
|
pub fn main() {}
|
|
|
|
|
|
|
|
#[cfg(rpass2)]
|
2021-05-15 13:20:42 +02:00
|
|
|
#[rustc_clean(except="hir_owner,hir_owner_nodes,optimized_mir", cfg="rpass2")]
|
2016-08-26 16:31:02 -04:00
|
|
|
pub fn main() {}
|