Skip to content

Commit 34fc73f

Browse files
committed
---
yaml --- r: 63885 b: refs/heads/snap-stage3 c: 052f28a h: refs/heads/master i: 63883: fc6cf6e v: v3
1 parent 3bd6ed7 commit 34fc73f

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: eee7accedb4b529dac67b2a50c4e25e3f47777d8
4+
refs/heads/snap-stage3: 052f28a8083c624a8f0a892893f9a059906e15c5
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/vec.rs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use iter::FromIter;
2323
use kinds::Copy;
2424
use libc;
2525
use num::Zero;
26+
use ops::Add;
2627
use option::{None, Option, Some};
2728
use ptr::to_unsafe_ptr;
2829
use ptr;
@@ -40,6 +41,7 @@ use util;
4041

4142
#[cfg(not(test))] use cmp::Equiv;
4243

44+
#[doc(hidden)]
4345
pub mod rustrt {
4446
use libc;
4547
use vec::raw;
@@ -1180,16 +1182,10 @@ impl<T:Ord> Ord for @[T] {
11801182
}
11811183

11821184
#[cfg(not(test))]
1183-
pub mod traits {
1184-
use kinds::Copy;
1185-
use ops::Add;
1186-
use vec::append;
1187-
1188-
impl<'self,T:Copy> Add<&'self [T],~[T]> for ~[T] {
1189-
#[inline]
1190-
fn add(&self, rhs: & &'self [T]) -> ~[T] {
1191-
append(copy *self, (*rhs))
1192-
}
1185+
impl<'self,T:Copy> Add<&'self [T], ~[T]> for ~[T] {
1186+
#[inline]
1187+
fn add(&self, rhs: & &'self [T]) -> ~[T] {
1188+
append(copy *self, (*rhs))
11931189
}
11941190
}
11951191

0 commit comments

Comments
 (0)