1
Fork 0

Remove metadata_loader query

It is only used by CrateLoader. We can store the metadata loader in
CStore instead which CrateLoader has access to.
This commit is contained in:
bjorn3 2023-08-13 16:35:09 +00:00
parent 980143b50c
commit c6247387b4
4 changed files with 15 additions and 16 deletions

View file

@ -2096,12 +2096,6 @@ rustc_queries! {
desc { "looking up enabled feature gates" }
}
query metadata_loader((): ()) -> &'tcx Steal<Box<rustc_session::cstore::MetadataLoaderDyn>> {
feedable
no_hash
desc { "raw operations for metadata file access" }
}
query crate_for_resolver((): ()) -> &'tcx Steal<(rustc_ast::Crate, rustc_ast::AttrVec)> {
feedable
no_hash