From 4d078dfb37e24bb6d7398cb9e2dfea70600aba17 Mon Sep 17 00:00:00 2001 From: Urgau Date: Thu, 23 May 2024 15:53:28 +0200 Subject: [PATCH] Copy core/alloc check-cfg message also in std --- library/std/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/std/Cargo.toml b/library/std/Cargo.toml index db4aea6a1ea64..e56f03808b311 100644 --- a/library/std/Cargo.toml +++ b/library/std/Cargo.toml @@ -100,6 +100,9 @@ test = true [lints.rust.unexpected_cfgs] level = "warn" +# x.py uses beta cargo, so `check-cfg` entries do not yet take effect +# for rust-lang/rust. But for users of `-Zbuild-std` it does. +# The unused warning is waiting for rust-lang/cargo#13925 to reach beta. check-cfg = [ 'cfg(bootstrap)', 'cfg(target_arch, values("xtensa"))',