about summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorCaio <c410.f3r@gmail.com>2019-06-09 07:58:40 -0300
committerCaio <c410.f3r@gmail.com>2019-06-09 07:58:40 -0300
commit1eaaf440d5173f090d6e937f4b4cffec6c038984 (patch)
tree9f0beed7bc92e5815b4db44b8e32973678140fcc /src/librustc_data_structures
parent5c45343f11fbf93cf4e15568aee3ff3f2f287466 (diff)
downloadrust-1eaaf440d5173f090d6e937f4b4cffec6c038984.tar.gz
rust-1eaaf440d5173f090d6e937f4b4cffec6c038984.zip
Allow attributes in formal function parameters
Diffstat (limited to 'src/librustc_data_structures')
-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)
+    }
+}