mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 11:17:26 +03:00
aa6f240972
std: do not overwrite style in `get_backtrace_style` If another thread calls `set_backtrace_style` while a `get_backtrace_style` is reading the environment variables, `get_backtrace_style` will overwrite the value. Use an atomic CAS to avoid this.