diff options
| author | bors <bors@rust-lang.org> | 2015-10-28 07:49:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-10-28 07:49:04 +0000 |
| commit | a455edfa7152ffcb31c6eba66c1ff230dba3eef1 (patch) | |
| tree | 8642bb2959502533dbe8882346081da270b3ff86 /src | |
| parent | 88fade54e163f899befc7d5ec09ce5f17fe57555 (diff) | |
| parent | 2a53edefd7dca7c43e201f5a3d2512d5ee75735b (diff) | |
| download | rust-a455edfa7152ffcb31c6eba66c1ff230dba3eef1.tar.gz rust-a455edfa7152ffcb31c6eba66c1ff230dba3eef1.zip | |
Auto merge of #29400 - gkoz:phantom_data, r=alexcrichton
None
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/marker.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libcore/marker.rs b/src/libcore/marker.rs index 27d8af2e8a8..f6baf23b564 100644 --- a/src/libcore/marker.rs +++ b/src/libcore/marker.rs @@ -18,6 +18,7 @@ use clone::Clone; use cmp; +use default::Default; use option::Option; use hash::Hash; use hash::Hasher; @@ -256,6 +257,12 @@ macro_rules! impls{ $t } } + + impl<T:?Sized> Default for $t<T> { + fn default() -> $t<T> { + $t + } + } ) } |
