1 // revisions: rpass1 rpass2
2 // compile-flags: -Z incremental-ignore-spans -Z query-dep-graph
4 // Tests that module hashing depends on the order of the items
5 // (since the order is exposed through `Mod.item_ids`).
6 // Changing the order of items (while keeping `Span`s the same)
7 // should still result in `hir_owner` being invalidated.
8 // Note that it's possible to keep the spans unchanged using
9 // a proc-macro (e.g. producing the module via `quote!`)
10 // but we use `-Z incremental-ignore-spans` for simplicity
12 #![feature(rustc_attrs)]
15 #[rustc_clean(cfg="rpass1",except="hir_owner")]
22 #[rustc_clean(cfg="rpass2",except="hir_owner")]