Commit 3179a47
committed
Auto merge of rust-lang#157417 - RalfJung:windows-tls-miri, r=ChrisDenton
Windows TLS: avoid atexit call in Miri
This was added in rust-lang#148799. I did not realize that we're actually falsely pretending that `atexit` worked, I thought we'd always return an error. Having it pretend to work when really it did nothing seems like a bad idea so let's just skip that call under `cfg(miri)`.
r? @ChrisDenton
Cc @ohadravid2 files changed
Lines changed: 7 additions & 15 deletions
File tree
- library/std/src/sys/thread_local/guard
- src/tools/miri/src/shims/windows
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | | - | |
160 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
161 | 165 | | |
162 | 166 | | |
163 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1400 | 1400 | | |
1401 | 1401 | | |
1402 | 1402 | | |
1403 | | - | |
1404 | | - | |
1405 | | - | |
1406 | | - | |
1407 | | - | |
1408 | | - | |
1409 | | - | |
1410 | | - | |
1411 | | - | |
1412 | | - | |
1413 | | - | |
1414 | | - | |
1415 | 1403 | | |
1416 | 1404 | | |
1417 | 1405 | | |
| |||
0 commit comments