Rename Resolver::active_features.

For the reasons described in the previous commit.
This commit is contained in:
Nicholas Nethercote
2023-10-05 16:20:07 +11:00
parent 4602d9257d
commit eb209057b1
2 changed files with 4 additions and 9 deletions

View File

@@ -854,7 +854,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
let feature = stability.feature;
let is_allowed = |feature| {
self.active_features.contains(&feature) || span.allows_unstable(feature)
self.declared_features.contains(&feature) || span.allows_unstable(feature)
};
let allowed_by_implication = implied_by.is_some_and(|feature| is_allowed(feature));
if !is_allowed(feature) && !allowed_by_implication {