diff options
| author | Wilfred Hughes <wilfred@meta.com> | 2024-10-23 09:57:57 -0700 |
|---|---|---|
| committer | Wilfred Hughes <wilfred@meta.com> | 2024-10-23 09:57:57 -0700 |
| commit | 33f27d135e2d537b72adf8e67958a69e4fb81236 (patch) | |
| tree | 03c79677ab4455c794fb6089826b8117acd64b4b /compiler/rustc_codegen_llvm/src | |
| parent | 1fbaccd893b8d0f393c14e94d8fbfe0c601c2e8f (diff) | |
| download | rust-33f27d135e2d537b72adf8e67958a69e4fb81236.tar.gz rust-33f27d135e2d537b72adf8e67958a69e4fb81236.zip | |
fix: Handle missing time offsets gracefully
The tracing_subscribe docs state that missing offsets likely mean that we're in a multithreaded context: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/fmt/time/struct.OffsetTime.html#method.local_rfc_3339 We're not in a multithreaded context at this point, but some platforms (e.g. OpenBSD) still don't have time offsets available. Since this is only a rust-analyzer debugging convenience, just use system time logging in this situation. Fixes #18384
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
