Auto merge of #85908 - cjgillot:private-dep-query, r=Aaron1011
Make is_private_dep a query. Part of #85153 r? `@Aaron1011`
This commit is contained in:
@@ -1264,12 +1264,6 @@ impl<'tcx> TyCtxt<'tcx> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns whether or not the crate with CrateNum 'cnum'
|
||||
/// is marked as a private dependency
|
||||
pub fn is_private_dep(self, cnum: CrateNum) -> bool {
|
||||
if cnum == LOCAL_CRATE { false } else { self.cstore.crate_is_private_dep_untracked(cnum) }
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn def_path_hash(self, def_id: DefId) -> rustc_hir::definitions::DefPathHash {
|
||||
if let Some(def_id) = def_id.as_local() {
|
||||
|
||||
Reference in New Issue
Block a user