Skip to content

Commit 161008a

Browse files
committed
---
yaml --- r: 31485 b: refs/heads/dist-snap c: e178999 h: refs/heads/master i: 31483: 34d986f v: v3
1 parent 6acd171 commit 161008a

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10-
refs/heads/dist-snap: 2df03bfdca16c23aaa7c3e10a876924edcd18469
10+
refs/heads/dist-snap: e178999833b9b484c3a5defcccfee2ed7f57e7d9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/dist-snap/src/libcore/core.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,17 @@ export add, sub, mul, div, modulo, neg, bitand, bitor, bitxor;
6060
#[cfg(notest)]
6161
export shl, shr, index;
6262

63+
#[cfg(test)]
64+
use coreops(name = "core", vers = "0.3");
65+
66+
#[cfg(test)]
67+
import coreops::ops::{const, copy, send, owned};
68+
#[cfg(test)]
69+
import coreops::ops::{add, sub, mul, div, modulo, neg, bitand, bitor, bitxor};
70+
#[cfg(test)]
71+
import coreops::ops::{shl, shr, index};
72+
73+
6374
// Export the log levels as global constants. Higher levels mean
6475
// more-verbosity. Error is the bottom level, default logging level is
6576
// warn-and-below.

branches/dist-snap/src/libcore/dvec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ impl extensions<A:copy> for dvec<A> {
311311
}
312312
}
313313

314-
impl extensions<A:copy> of ops::index<uint,A> for dvec<A> {
314+
impl extensions<A:copy> of index<uint,A> for dvec<A> {
315315
pure fn index(&&idx: uint) -> A {
316316
self.get_elt(idx)
317317
}

branches/dist-snap/src/libcore/str.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1918,7 +1918,8 @@ impl extensions of unique_str for ~str {
19181918
}
19191919
}
19201920

1921-
impl extensions of ops::add<&str,~str> for ~str {
1921+
#[cfg(notest)]
1922+
impl extensions of add<&str,~str> for ~str {
19221923
#[inline(always)]
19231924
pure fn add(rhs: &str) -> ~str {
19241925
append(self, rhs)

branches/dist-snap/src/libcore/vec.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,8 @@ impl extensions<T: copy> of vec_concat<T> for ~[T] {
12991299
}
13001300
}
13011301

1302-
impl extensions<T: copy> of ops::add<&[const T],~[T]> for ~[T] {
1302+
#[cfg(notest)]
1303+
impl extensions<T: copy> of add<&[const T],~[T]> for ~[T] {
13031304
#[inline(always)]
13041305
pure fn add(rhs: &[const T]) -> ~[T] {
13051306
append(self, rhs)
@@ -1313,7 +1314,7 @@ impl extensions<T: copy> of vec_concat<T> for ~[mut T] {
13131314
}
13141315
}
13151316

1316-
impl extensions<T: copy> of ops::add<&[const T],~[mut T]> for ~[mut T] {
1317+
impl extensions<T: copy> of add<&[const T],~[mut T]> for ~[mut T] {
13171318
#[inline(always)]
13181319
pure fn add(rhs: &[const T]) -> ~[mut T] {
13191320
append_mut(self, rhs)

0 commit comments

Comments
 (0)