1
Fork 0

Remove eval_always for lib_features.

This commit is contained in:
Camille GILLOT 2021-05-20 20:57:09 +02:00
parent e6d2de9483
commit 877b2d79d9
5 changed files with 5 additions and 11 deletions

View file

@ -124,12 +124,12 @@ impl Visitor<'tcx> for LibFeatureCollector<'tcx> {
}
}
fn get_lib_features(tcx: TyCtxt<'_>, (): ()) -> LibFeatures {
fn lib_features(tcx: TyCtxt<'_>, (): ()) -> LibFeatures {
let mut collector = LibFeatureCollector::new(tcx);
tcx.hir().walk_attributes(&mut collector);
collector.lib_features
}
pub fn provide(providers: &mut Providers) {
providers.get_lib_features = get_lib_features;
providers.lib_features = lib_features;
}