We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b18990b commit 65c66a1Copy full SHA for 65c66a1
library/std/src/sys/windows/thread_local_key.rs
@@ -42,7 +42,10 @@ unsafe fn run_keyless_dtors() {
42
// the case that this loop always terminates because we provide the
43
// guarantee that a TLS key cannot be set after it is flagged for
44
// destruction.
45
- while let Some((ptr, dtor)) = DESTRUCTORS.borrow_mut().pop() {
+ loop {
46
+ let Some((ptr, dtor)) = DESTRUCTORS.borrow_mut().pop() else {
47
+ break;
48
+ };
49
(dtor)(ptr);
50
}
51
// We're done so free the memory.
0 commit comments