Skip to content

Commit 300da9a

Browse files
committed
only use rustc attr on nightly
1 parent f167efa commit 300da9a

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_type_ir/src/search_graph

1 file changed

+1
-1
lines changed

compiler/rustc_type_ir/src/search_graph/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ impl<X: Cx> NestedGoals<X> {
287287
}
288288
}
289289

290-
#[rustc_lint_query_instability]
290+
#[cfg_attr(feature = "nightly", rustc_lint_query_instability)]
291291
#[allow(rustc::potential_query_instability)]
292292
fn iter(&self) -> impl Iterator<Item = (X::Input, UsageKind)> + '_ {
293293
self.nested_goals.iter().map(|(i, p)| (*i, *p))

0 commit comments

Comments
 (0)