Skip to content

Commit 33d8b04

Browse files
committed
Move const def nearer usage.
1 parent daa55ac commit 33d8b04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/num/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ use crate::intrinsics;
66
use crate::mem;
77
use crate::str::FromStr;
88

9-
/// If 6th bit set ascii is upper case.
10-
const ASCII_CASE_MASK: u8 = 0b0010_0000;
11-
129
// Used because the `?` operator is not allowed in a const context.
1310
macro_rules! try_opt {
1411
($e:expr) => {
@@ -155,6 +152,9 @@ impl isize {
155152
usize_isize_to_xe_bytes_doc!(), usize_isize_from_xe_bytes_doc!() }
156153
}
157154

155+
/// If 6th bit set ascii is upper case.
156+
const ASCII_CASE_MASK: u8 = 0b0010_0000;
157+
158158
#[lang = "u8"]
159159
impl u8 {
160160
uint_impl! { u8, u8, 8, 255, 2, "0x82", "0xa", "0x12", "0x12", "0x48", "[0x12]",

0 commit comments

Comments
 (0)