1 // Test that using rustc_clean/dirty/if_this_changed/then_this_would_need
2 // are forbidden when `-Z query-dep-graph` is not enabled.
4 #![feature(rustc_attrs)]
6 #![allow(unused_variables)]
8 #[rustc_clean(hir_owner)] //~ ERROR attribute requires -Z query-dep-graph
11 #[rustc_if_this_changed(hir_owner)] //~ ERROR attribute requires -Z query-dep-graph
16 #[rustc_clean(hir_owner)] //~ ERROR attribute requires -Z query-dep-graph
17 type TypeAlias<T> = Foo<T>;
19 #[rustc_then_this_would_need(variances_of)] //~ ERROR attribute requires -Z query-dep-graph