diff options
| author | Ben Kimock <kimockb@gmail.com> | 2023-04-07 23:11:20 -0400 |
|---|---|---|
| committer | Ben Kimock <kimockb@gmail.com> | 2023-04-18 10:52:47 -0400 |
| commit | 0445fbdd835c92156e4d06e42ce99a39e9315343 (patch) | |
| tree | 98214d1ae76737d58e423427cd7384b1f276230c /compiler/rustc_data_structures/src/svh.rs | |
| parent | de96f3d8735b70d5dc1ca178aaee198b329b8f3d (diff) | |
| download | rust-0445fbdd835c92156e4d06e42ce99a39e9315343.tar.gz rust-0445fbdd835c92156e4d06e42ce99a39e9315343.zip | |
Store hashes in special types so they aren't accidentally encoded as numbers
Diffstat (limited to 'compiler/rustc_data_structures/src/svh.rs')
| -rw-r--r-- | compiler/rustc_data_structures/src/svh.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/svh.rs b/compiler/rustc_data_structures/src/svh.rs index b955df94f16..a3d2724fcdb 100644 --- a/compiler/rustc_data_structures/src/svh.rs +++ b/compiler/rustc_data_structures/src/svh.rs @@ -24,7 +24,7 @@ impl Svh { } pub fn as_u64(&self) -> u64 { - self.hash.to_smaller_hash() + self.hash.to_smaller_hash().as_u64() } pub fn to_string(&self) -> String { |
