1
Fork 0

Unify defined_lib_features and lib_features queries

This commit is contained in:
Michael Goulet 2023-09-23 05:38:49 +00:00
parent 46ecc10c69
commit 86299a1247
9 changed files with 85 additions and 62 deletions

View file

@ -1732,13 +1732,10 @@ rustc_queries! {
desc { |tcx| "computing crate imported by `{}`", tcx.def_path_str(def_id) }
}
query lib_features(_: ()) -> &'tcx LibFeatures {
arena_cache
desc { "calculating the lib features map" }
}
query defined_lib_features(_: CrateNum) -> &'tcx [(Symbol, Option<Symbol>)] {
query lib_features(_: CrateNum) -> &'tcx LibFeatures {
desc { "calculating the lib features defined in a crate" }
separate_provide_extern
arena_cache
}
query stability_implications(_: CrateNum) -> &'tcx FxHashMap<Symbol, Symbol> {
arena_cache