We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9861bc8 commit c3276c6Copy full SHA for c3276c6
compiler/rustc_middle/src/hir/map/mod.rs
@@ -1121,6 +1121,10 @@ pub(super) fn crate_hash(tcx: TyCtxt<'_>, crate_num: CrateNum) -> Svh {
1121
}
1122
tcx.sess.opts.dep_tracking_hash(true).hash_stable(&mut hcx, &mut stable_hasher);
1123
tcx.sess.local_stable_crate_id().hash_stable(&mut hcx, &mut stable_hasher);
1124
+ // Hash visibility information since it does not appear in HIR.
1125
+ let resolutions = tcx.resolutions(());
1126
+ resolutions.visibilities.hash_stable(&mut hcx, &mut stable_hasher);
1127
+ resolutions.has_pub_restricted.hash_stable(&mut hcx, &mut stable_hasher);
1128
1129
let crate_hash: Fingerprint = stable_hasher.finish();
1130
Svh::new(crate_hash.to_smaller_hash())
0 commit comments