diff options
| author | Caio <c410.f3r@gmail.com> | 2019-06-09 07:58:40 -0300 |
|---|---|---|
| committer | Caio <c410.f3r@gmail.com> | 2019-06-09 07:58:40 -0300 |
| commit | 1eaaf440d5173f090d6e937f4b4cffec6c038984 (patch) | |
| tree | 9f0beed7bc92e5815b4db44b8e32973678140fcc /src/librustc_data_structures | |
| parent | 5c45343f11fbf93cf4e15568aee3ff3f2f287466 (diff) | |
| download | rust-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.rs | 6 |
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) + } +} |
