Skip to content

Commit c8e180b

Browse files
committed
Use std::intrinsics::unreachable instead of an infinite loop
1 parent 0cef85e commit c8e180b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ macro_rules! lazy_static {
108108
});
109109
match *DATA.0.get() {
110110
Some(ref x) => x,
111-
None => loop { /* unreachable */ },
111+
None => ::std::intrinsics::unreachable(),
112112
}
113113
}
114114

0 commit comments

Comments
 (0)