We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a7f774 commit c3241d0Copy full SHA for c3241d0
src/libstd/thread/local.rs
@@ -432,6 +432,7 @@ pub mod fast {
432
// performed for every call to `Key::get`.
433
// LLVM issue: https://bugs.llvm.org/show_bug.cgi?id=41722
434
#[inline(never)]
435
+ #[cold]
436
unsafe fn try_initialize_drop<F: FnOnce() -> T>(&self, init: F) -> Option<&'static T> {
437
// We don't put a `needs_drop` check around this and call it a day
438
// because this function is not inlined. Unwrapping code gets
0 commit comments