We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bed7ea8 commit c981001Copy full SHA for c981001
src/librustc/hir/svh.rs
@@ -36,17 +36,7 @@ impl Svh {
36
}
37
38
pub fn to_string(&self) -> String {
39
- let hash = self.hash;
40
- return (0..64).step_by(4).map(|i| hex(hash >> i)).collect();
41
-
42
- fn hex(b: u64) -> char {
43
- let b = (b & 0xf) as u8;
44
- let b = match b {
45
- 0 ... 9 => '0' as u8 + b,
46
- _ => 'a' as u8 + b - 10,
47
- };
48
- b as char
49
- }
+ format!("{:016x}", self.hash)
50
51
52
src/librustc/lib.rs
@@ -37,7 +37,6 @@
#![feature(rustc_private)]
#![feature(slice_patterns)]
#![feature(staged_api)]
-#![feature(step_by)]
#![feature(question_mark)]
#![cfg_attr(test, feature(test))]
0 commit comments