After #106856, CARGO_CFG_TARGET_HAS_ATOMIC{,_LOAD_STORE} become empty strings #108201
Labels
C-bug
Category: This is a bug.
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-cargo
Relevant to the cargo team, which will review and decide on the PR/issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
I ran
cargo build -vv
with this code:I expected to see this happen:
Instead, this happened:
It seems that
cfg(target_has_atomic{,_load_store})
without value that is added in #106856 is overridingcfg(target_has_atomic{,_load_store})
with value.This environment variable still seems to be rarely used in the ecosystem, but profiler_builtins uses it.
rust/library/profiler_builtins/build.rs
Line 67 in 231bcd1
Mentioning @vadorovsky who authored #106856
Version it worked on
It most recently worked on: nightly-2023-01-27
Version with regression
nightly-2023-01-28
rustc --version --verbose
:@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged
The text was updated successfully, but these errors were encountered: