1 // revisions: rpass1 cfail2
2 // compile-flags: -Z query-dep-graph
5 #![feature(rustc_attrs)]
7 // Sanity check for the dirty-clean system. We add #[rustc_clean]
8 // attributes in places that are not checked and make sure that this causes an
13 #[rustc_clean(except="hir_owner", cfg="cfail2")]
14 //[cfail2]~^ ERROR found unchecked `#[rustc_clean]` attribute
19 #[rustc_clean(cfg="cfail2")]
20 //[cfail2]~^ ERROR found unchecked `#[rustc_clean]` attribute
27 #[rustc_clean(except="hir_owner", cfg="cfail2")]
28 //[cfail2]~^ ERROR found unchecked `#[rustc_clean]` attribute
31 #[rustc_clean(cfg="cfail2")]
32 //[cfail2]~^ ERROR found unchecked `#[rustc_clean]` attribute