We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
thread_local!
1 parent 340bb19 commit fa1e35cCopy full SHA for fa1e35c
library/std/src/sys/pal/common/thread_local/fast_local.rs
@@ -94,7 +94,8 @@ pub macro thread_local_inner {
94
if let $crate::option::Option::Some(init) = init {
95
if let $crate::option::Option::Some(value) = init.take() {
96
return value;
97
- } else if $crate::cfg!(debug_assertions) {
+ }
98
+ if $crate::cfg!(debug_assertions) {
99
$crate::unreachable!("missing default value");
100
}
101
0 commit comments