rm declared_features
field in resolver
This commit is contained in:
parent
9337f7afa6
commit
9c29e0b818
2 changed files with 2 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue