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, }