Use () for privacy.

This commit is contained in:
Camille GILLOT 2021-05-11 13:49:00 +02:00
parent 2c71ad4bb3
commit 9849327384
10 changed files with 19 additions and 26 deletions

View file

@ -1000,7 +1000,7 @@ pub fn process_crate<'l, 'tcx, H: SaveHandler>(
// Privacy checking requires and is done after type checking; use a
// fallback in case the access levels couldn't have been correctly computed.
let access_levels = match tcx.sess.compile_status() {
Ok(..) => tcx.privacy_access_levels(LOCAL_CRATE),
Ok(..) => tcx.privacy_access_levels(()),
Err(..) => tcx.arena.alloc(AccessLevels::default()),
};