Skip to content

Commit adcfb3d

Browse files
committed
---
yaml --- r: 22821 b: refs/heads/master c: dfbe697 h: refs/heads/master i: 22819: ad7e202 v: v3
1 parent 6b491f0 commit adcfb3d

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
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: 725a73c4d5eca5a7cbff019ea44e86623e9065fb
2+
refs/heads/master: dfbe6976c2b05af7ef7182c14232713467595a11
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/libcore/core.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ mod tuple;
166166

167167
// Ubiquitous-utility-type modules
168168

169+
#[cfg(notest)]
169170
mod ops;
170171
mod cmp;
171172
mod num;

trunk/src/libcore/core.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ import float::num;
3030
import f32::num;
3131
import f64::num;
3232
import num::num;
33-
import ops::{const, copy, send, owned};
34-
import ops::{add, sub, mul, div, modulo, neg, bitand, bitor, bitxor, shl};
35-
import ops::{shr, index};
3633

3734
export path, option, some, none, unreachable;
3835
export extensions;
@@ -45,8 +42,20 @@ export immutable_copyable_vector, iter_trait_extensions, vec_concat;
4542
export base_iter, copyable_iter, extended_iter;
4643
export tuple_ops, extended_tuple_ops;
4744
export ptr;
45+
4846
// The following exports are the core operators and kinds
47+
// The compiler has special knowlege of these so we must not duplicate them
48+
// when compiling for testing
49+
#[cfg(notest)]
50+
import ops::{const, copy, send, owned};
51+
#[cfg(notest)]
52+
import ops::{add, sub, mul, div, modulo, neg, bitand, bitor, bitxor, shl};
53+
#[cfg(notest)]
54+
import ops::{shr, index};
55+
56+
#[cfg(notest)]
4957
export const, copy, send, owned;
58+
#[cfg(notest)]
5059
export add, sub, mul, div, modulo, neg, bitops, index;
5160

5261
// Export the log levels as global constants. Higher levels mean

0 commit comments

Comments
 (0)