We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbe6fa6 commit 9b7e102Copy full SHA for 9b7e102
library/std/src/sys/pal/windows/thread.rs
@@ -88,7 +88,8 @@ impl Thread {
88
.into_bytes();
89
// Attempt to free the memory.
90
// This should never fail but if it does then there's not much we can do about it.
91
- debug_assert!(c::LocalFree(ptr.cast::<c_void>()).is_null());
+ let result = c::LocalFree(ptr.cast::<c_void>());
92
+ debug_assert!(result.is_null());
93
Some(CString::from_vec_unchecked(name))
94
}
95
0 commit comments