about summary refs log tree commit diff
path: root/library/std/src/sys
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-12-26 13:29:13 -0500
committerGitHub <noreply@github.com>2023-12-26 13:29:13 -0500
commit50e380c8f3e8bad3c6327895a2af8a99b378030b (patch)
tree4bb7cf4538b8dd5ecfbb42855022b50b04c3695f /library/std/src/sys
parente1fadb2c35a6082867a037f012bfdfc5eb686211 (diff)
parentc88b021782aff93102c8d449829a30210d67b2ab (diff)
downloadrust-50e380c8f3e8bad3c6327895a2af8a99b378030b.tar.gz
rust-50e380c8f3e8bad3c6327895a2af8a99b378030b.zip
Rollup merge of #119235 - Urgau:missing-feature-gate-sanitizer-cfi-cfgs, r=Nilstrieb
Add missing feature gate for sanitizer CFI cfgs

Found during the review of https://github.com/rust-lang/rust/pull/118494 in https://github.com/rust-lang/rust/pull/118494#discussion_r1416079288.

cc `@rcvalle`
Diffstat (limited to 'library/std/src/sys')
-rw-r--r--library/std/src/sys/unix/thread_local_dtor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/thread_local_dtor.rs b/library/std/src/sys/unix/thread_local_dtor.rs
index ac85531c372..58f7ab84101 100644
--- a/library/std/src/sys/unix/thread_local_dtor.rs
+++ b/library/std/src/sys/unix/thread_local_dtor.rs
@@ -11,7 +11,7 @@
 // Note, however, that we run on lots older linuxes, as well as cross
 // compiling from a newer linux to an older linux, so we also have a
 // fallback implementation to use as well.
-#[allow(unexpected_cfgs)]
+#[cfg_attr(bootstrap, allow(unexpected_cfgs))]
 #[cfg(any(
     target_os = "linux",
     target_os = "android",