mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 09:32:15 +00:00
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.