about summary refs log tree commit diff
path: root/src/librustc_data_structures/thin_vec.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_data_structures/thin_vec.rs')
-rw-r--r--src/librustc_data_structures/thin_vec.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/librustc_data_structures/thin_vec.rs b/src/librustc_data_structures/thin_vec.rs
index 52f23f4893e..6692903cd4f 100644
--- a/src/librustc_data_structures/thin_vec.rs
+++ b/src/librustc_data_structures/thin_vec.rs
@@ -66,3 +66,9 @@ impl<T: HashStable<CTX>, CTX> HashStable<CTX> for ThinVec<T> {
         (**self).hash_stable(hcx, hasher)
     }
 }
+
+impl<T> Default for ThinVec<T> {
+    fn default() -> Self {
+        Self(None)
+    }
+}