Skip to content

Commit

Permalink
Rollup merge of rust-lang#73616 - pickfire:liballoc-hash, r=joshtriplett
Browse files Browse the repository at this point in the history
Liballoc minor hash import tweak
  • Loading branch information
Dylan-DPC committed Jun 25, 2020
2 parents 9515c17 + 314e621 commit 6f22571
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/liballoc/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 6f22571

Please sign in to comment.