diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-11 13:49:00 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-12 13:58:45 +0200 |
| commit | 9849327384fca36d539b87bbd641da3e0ef8a729 (patch) | |
| tree | 1f69a929e3f01767905d7322f45e158446dbe1bd /compiler/rustc_save_analysis/src | |
| parent | 2c71ad4bb36173bd48679e28be6b1f68d5ca7819 (diff) | |
| download | rust-9849327384fca36d539b87bbd641da3e0ef8a729.tar.gz rust-9849327384fca36d539b87bbd641da3e0ef8a729.zip | |
Use () for privacy.
Diffstat (limited to 'compiler/rustc_save_analysis/src')
| -rw-r--r-- | compiler/rustc_save_analysis/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_save_analysis/src/lib.rs b/compiler/rustc_save_analysis/src/lib.rs index 7256e68b87a..861a0201edf 100644 --- a/compiler/rustc_save_analysis/src/lib.rs +++ b/compiler/rustc_save_analysis/src/lib.rs @@ -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()), }; |
