Skip to content

Commit a30ee8e

Browse files
author
Krishna Sai Veera Reddy
committed
Document usage of unsafe block
1 parent 4ca769a commit a30ee8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/cmp.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,7 @@ mod impls {
11341134
-1 => Less,
11351135
0 => Equal,
11361136
1 => Greater,
1137+
// SAFETY: Unreachable code
11371138
_ => unsafe { unreachable_unchecked() },
11381139
}
11391140
}

0 commit comments

Comments
 (0)