Update compiler/rustc_metadata/src/creader.rs

Co-authored-by: Camille Gillot <gillot.camille@gmail.com>
This commit is contained in:
Michael Howell 2023-05-01 13:30:05 -07:00
parent 674a3d5c1c
commit ffef807889

View File

@ -564,7 +564,7 @@ impl<'a, 'tcx> CrateLoader<'a, 'tcx> {
dep_kind = CrateDepKind::MacrosOnly;
}
data.update_dep_kind(|data_dep_kind| cmp::max(data_dep_kind, dep_kind));
data.update_private_dep(|private_dep| private_dep && private_dep);
data.update_private_dep(|p_d| p_d && private_dep);
Ok(cnum)
}
(LoadResult::Loaded(library), host_library) => {