]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_data_structures/svh.rs
Merge remote-tracking branch 'upstream/master'
[rust.git] / src / librustc_data_structures / svh.rs
index 749479534979c8beb7f4379f90b15b78938d537f..df4f61768375e35d4a1915760870e6e1cae19570 100644 (file)
@@ -9,7 +9,7 @@
 use std::hash::{Hash, Hasher};
 use serialize::{Encodable, Decodable, Encoder, Decoder};
 
-use stable_hasher;
+use crate::stable_hasher;
 
 #[derive(Copy, Clone, PartialEq, Eq, Debug)]
 pub struct Svh {
@@ -17,7 +17,7 @@ pub struct Svh {
 }
 
 impl Svh {
-    /// Create a new `Svh` given the hash. If you actually want to
+    /// Creates a new `Svh` given the hash. If you actually want to
     /// compute the SVH from some HIR, you want the `calculate_svh`
     /// function found in `librustc_incremental`.
     pub fn new(hash: u64) -> Svh {
@@ -40,7 +40,7 @@ fn hash<H>(&self, state: &mut H) where H: Hasher {
 }
 
 impl fmt::Display for Svh {
-    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
         f.pad(&self.to_string())
     }
 }