]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_data_structures/stable_hasher.rs
incr.comp.: Add some comments.
[rust.git] / src / librustc_data_structures / stable_hasher.rs
index a5df250b33810b59f9796ab0656166c0c3d1bb32..9aba48c5bef07b60b5f065f15125977056415f9b 100644 (file)
@@ -558,10 +558,12 @@ pub fn hash_stable_hashmap<HCX, K, V, R, SK, F, W>(
     entries.hash_stable(hcx, hasher);
 }
 
+
+/// A vector container that makes sure that its items are hashed in a stable
+/// order.
 pub struct StableVec<T>(Vec<T>);
 
 impl<T> StableVec<T> {
-
     pub fn new(v: Vec<T>) -> Self {
         StableVec(v)
     }