diff options
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/windows/thread_local_key.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/thread_local_key.rs b/src/libstd/sys/windows/thread_local_key.rs index 0bd9600b6f2..82901871e78 100644 --- a/src/libstd/sys/windows/thread_local_key.rs +++ b/src/libstd/sys/windows/thread_local_key.rs @@ -131,7 +131,8 @@ unsafe fn register_dtor(key: Key, dtor: Dtor) { #[cfg(miri)] miri_static_root(&*node as *const _ as *const u8); - return mem::forget(node); + mem::forget(node); + return; } Err(cur) => head = cur, } |
