Remove eval_always for lib_features.
This commit is contained in:
parent
e6d2de9483
commit
877b2d79d9
5 changed files with 5 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue