Skip to content

Commit e6708e9

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 158205 b: refs/heads/master c: 73b86e4 h: refs/heads/master i: 158203: 0d6693a v: v3
1 parent 388eb0a commit e6708e9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 679eb9191dd06a2e0dacf3602da56765211fd76a
2+
refs/heads/master: 73b86e47786e14938048b7c298a70bc5ff536a88
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 1b2ad7831f1745bf4a4709a1fa1772afb47c933c
55
refs/heads/try: 98bd84a3300f974f400a3eeb56567ad3f77b13f0

trunk/src/liballoc/boxed.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ impl<T: Default> Default for Box<T> {
4848
fn default() -> Box<T> { box Default::default() }
4949
}
5050

51+
impl<T> Default for Box<[T]> {
52+
fn default() -> Box<[T]> { box [] }
53+
}
54+
5155
#[unstable]
5256
impl<T: Clone> Clone for Box<T> {
5357
/// Returns a copy of the owned box.

0 commit comments

Comments
 (0)