mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 12:26:52 +00:00
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.