1 // revisions:rpass1 rpass2
2 // compile-flags: -Z query-dep-graph
4 // We use #[inline(always)] to ensure that the downstream crate
5 // will always load the MIR for these functions
7 #![feature(rustc_attrs)]
10 macro_rules! first_macro {
12 println!("New call!");
16 #[rustc_clean(except="hir_owner_nodes,typeck,optimized_mir,promoted_mir", cfg="rpass2")]
19 // This will cause additional hygiene to be generate,
20 // which will cause the SyntaxContext/ExpnId raw ids to be
21 // different when we write out `my_fn` to the crate metadata.
26 macro_rules! print_loc {
28 println!("Caller loc: {}", std::panic::Location::caller());
32 #[rustc_clean(cfg="rpass2")]
34 pub fn unchanged_fn() {