only use rustc attr on nightly

This commit is contained in:
Rémy Rakic 2024-08-24 20:36:56 +00:00
parent f167efad2f
commit 300da9a910

View File

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