about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-06-25 02:03:36 +0200
committerGitHub <noreply@github.com>2020-06-25 02:03:36 +0200
commit6c1a91edd92f8cdb2e4d3af51b06bef74aa33dad (patch)
treea369a55003293191d13a9f466803849d2cf78ab5 /src/liballoc
parentd6c674bc14910b2bd2831adfb03726bbe7c8cea3 (diff)
parent314e621198942a6dfd5db8beea27065f0ee69aa3 (diff)
downloadrust-6c1a91edd92f8cdb2e4d3af51b06bef74aa33dad.tar.gz
rust-6c1a91edd92f8cdb2e4d3af51b06bef74aa33dad.zip
Rollup merge of #73616 - pickfire:liballoc-hash, r=joshtriplett
Liballoc minor hash import tweak
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/vec.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs
index fc8a992e170..1265d0e56b5 100644
--- a/src/liballoc/vec.rs
+++ b/src/liballoc/vec.rs
@@ -62,7 +62,7 @@
 use core::array::LengthAtMost32;
 use core::cmp::{self, Ordering};
 use core::fmt;
-use core::hash::{self, Hash};
+use core::hash::{Hash, Hasher};
 use core::intrinsics::{arith_offset, assume};
 use core::iter::{FromIterator, FusedIterator, TrustedLen};
 use core::marker::PhantomData;
@@ -1943,7 +1943,7 @@ impl<T: Clone> Clone for Vec<T> {
 #[stable(feature = "rust1", since = "1.0.0")]
 impl<T: Hash> Hash for Vec<T> {
     #[inline]
-    fn hash<H: hash::Hasher>(&self, state: &mut H) {
+    fn hash<H: Hasher>(&self, state: &mut H) {
         Hash::hash(&**self, state)
     }
 }