1 // Check that the hash of `foo` doesn't change just because we ordered
2 // the nested items (or even added new ones).
4 // revisions: cfail1 cfail2
5 // build-pass (FIXME(62277): could be check-pass?)
6 // compile-flags: -Z query-dep-graph
8 #![crate_type = "rlib"]
9 #![feature(rustc_attrs)]
11 #[rustc_clean(except = "hir_owner_nodes", cfg = "cfail2")]
14 pub fn baz() {} // order is different...
16 #[rustc_clean(cfg = "cfail2")]
17 pub fn bar() {} // but that doesn't matter.
20 pub fn baz() {} // order is different...
22 pub fn bap() {} // neither does adding a new item