rm declared_features field in resolver
This commit is contained in:
@@ -1001,7 +1001,8 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
|
||||
let feature = stability.feature;
|
||||
|
||||
let is_allowed = |feature| {
|
||||
self.declared_features.contains(&feature) || span.allows_unstable(feature)
|
||||
self.tcx.features().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 {
|
||||
|
||||
Reference in New Issue
Block a user