diff options
| author | bors <bors@rust-lang.org> | 2015-10-24 01:19:26 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-10-24 01:19:26 +0000 |
| commit | d689182e5d271f76604c951b6004546a3a7f0c0c (patch) | |
| tree | c6a6dbf3813c69b466c5bbfc7c9a4831ad25bed0 | |
| parent | 1210fb9bc61b351cb0441cc48dac9e18987fb88b (diff) | |
| parent | 36ce1c06a45471f0d028dd7d9899102aa5cbbf10 (diff) | |
| download | rust-d689182e5d271f76604c951b6004546a3a7f0c0c.tar.gz rust-d689182e5d271f76604c951b6004546a3a7f0c0c.zip | |
Auto merge of #29245 - james-darkfox:master, r=alexcrichton
| -rw-r--r-- | src/libcore/slice.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs index a4ccc975d56..8e3eba15b4e 100644 --- a/src/libcore/slice.rs +++ b/src/libcore/slice.rs @@ -655,6 +655,11 @@ impl<'a, T> Default for &'a [T] { fn default() -> &'a [T] { &[] } } +#[stable(feature = "mut_slice_default", since = "1.5.0")] +impl<'a, T> Default for &'a mut [T] { + fn default() -> &'a mut [T] { &mut [] } +} + // // Iterators // |
