about summary refs log tree commit diff
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
commite1f039f5628f665dead2c9a13b4c32ffe92336ac (patch)
tree7bd8ee9d77cd3e0facbc2e9e0d40267eaf4379b1
parenta72e20d77378420af6c02daebb9c6b1f3fe9757a (diff)
downloadrust-e1f039f5628f665dead2c9a13b4c32ffe92336ac.tar.gz
rust-e1f039f5628f665dead2c9a13b4c32ffe92336ac.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
-rw-r--r--src/allocator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/allocator.rs b/src/allocator.rs
index c8c098e2973..7c7044830f3 100644
--- a/src/allocator.rs
+++ b/src/allocator.rs
@@ -90,7 +90,7 @@ fn create_wrapper_function(
         .collect();
     let func = context.new_function(None, FunctionType::Exported, output.unwrap_or(void), &args, from_name, false);
 
-    if tcx.sess.target.options.default_hidden_visibility {
+    if tcx.sess.default_hidden_visibility() {
         #[cfg(feature="master")]
         func.add_attribute(FnAttribute::Visibility(gccjit::Visibility::Hidden));
     }