diff options
| author | bors <bors@rust-lang.org> | 2019-09-29 06:08:50 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-09-29 06:08:50 +0000 |
| commit | fe2f7e0e5350a431e00e72cfd00df2669f94fe06 (patch) | |
| tree | 612c17e3a2c2f7815be281b5be840aec1a50353a /src/libsyntax_pos | |
| parent | 0bbab7d99dde8620604fb265706dc8bff20345a7 (diff) | |
| parent | 0d4afa164bd1146eeba957dfe5a784624038bc3a (diff) | |
| download | rust-fe2f7e0e5350a431e00e72cfd00df2669f94fe06.tar.gz rust-fe2f7e0e5350a431e00e72cfd00df2669f94fe06.zip | |
Auto merge of #64886 - Centril:rollup-30dqh8j, r=Centril
Rollup of 5 pull requests Successful merges: - #63492 (Remove redundancy from the implementation of C variadics.) - #64589 (Differentiate AArch64 bare-metal targets between hf and non-hf.) - #64799 (Fix double panic when printing query stack during an ICE) - #64824 (No StableHasherResult everywhere) - #64884 (Add pkg-config to dependency list if building for Linux on Linux) Failed merges: r? @ghost
Diffstat (limited to 'src/libsyntax_pos')
| -rw-r--r-- | src/libsyntax_pos/lib.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libsyntax_pos/lib.rs b/src/libsyntax_pos/lib.rs index ca177eb4a36..674f17de618 100644 --- a/src/libsyntax_pos/lib.rs +++ b/src/libsyntax_pos/lib.rs @@ -1067,14 +1067,14 @@ impl SourceFile { normalize_newlines(&mut src); let src_hash = { - let mut hasher: StableHasher<u128> = StableHasher::new(); + let mut hasher: StableHasher = StableHasher::new(); hasher.write(src.as_bytes()); - hasher.finish() + hasher.finish::<u128>() }; let name_hash = { - let mut hasher: StableHasher<u128> = StableHasher::new(); + let mut hasher: StableHasher = StableHasher::new(); name.hash(&mut hasher); - hasher.finish() + hasher.finish::<u128>() }; let end_pos = start_pos.to_usize() + src.len(); if end_pos > u32::max_value() as usize { @@ -1120,10 +1120,10 @@ impl SourceFile { // Check that no-one else have provided the source while we were getting it if *external_src == ExternalSource::AbsentOk { if let Some(src) = src { - let mut hasher: StableHasher<u128> = StableHasher::new(); + let mut hasher: StableHasher = StableHasher::new(); hasher.write(src.as_bytes()); - if hasher.finish() == self.src_hash { + if hasher.finish::<u128>() == self.src_hash { *external_src = ExternalSource::Present(src); return true; } |
