about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize
diff options
context:
space:
mode:
authorLukasz Anforowicz <lukasza@chromium.org>2023-12-13 21:14:18 +0000
committerLukasz Anforowicz <lukasza@chromium.org>2023-12-13 21:14:23 +0000
commit981c4e3ce6f3d89f681fbb0de753d03425c6a209 (patch)
tree45fac0a87e9435e05ef8b63941ba36ed650f885d /compiler/rustc_monomorphize
parent56d25ba5ea3515ba2b361b6c4636373734eb27cc (diff)
downloadrust-981c4e3ce6f3d89f681fbb0de753d03425c6a209.tar.gz
rust-981c4e3ce6f3d89f681fbb0de753d03425c6a209.zip
Add unstable `-Zdefault-hidden-visibility` cmdline flag for `rustc`.
The new flag has been described in the Major Change Proposal at
https://github.com/rust-lang/compiler-team/issues/656
Diffstat (limited to 'compiler/rustc_monomorphize')
-rw-r--r--compiler/rustc_monomorphize/src/partitioning.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_monomorphize/src/partitioning.rs b/compiler/rustc_monomorphize/src/partitioning.rs
index c2b307910e4..e06935d4e47 100644
--- a/compiler/rustc_monomorphize/src/partitioning.rs
+++ b/compiler/rustc_monomorphize/src/partitioning.rs
@@ -883,7 +883,7 @@ fn mono_item_visibility<'tcx>(
 }
 
 fn default_visibility(tcx: TyCtxt<'_>, id: DefId, is_generic: bool) -> Visibility {
-    if !tcx.sess.target.default_hidden_visibility {
+    if !tcx.sess.default_hidden_visibility() {
         return Visibility::Default;
     }