Skip to content

Commit f77c492

Browse files
committed
---
yaml --- r: 20713 b: refs/heads/snap-stage3 c: dfbe697 h: refs/heads/master i: 20711: 3528b99 v: v3
1 parent ab9df01 commit f77c492

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,7 +1,7 @@
11
---
22
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 725a73c4d5eca5a7cbff019ea44e86623e9065fb
4+
refs/heads/snap-stage3: dfbe6976c2b05af7ef7182c14232713467595a11
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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;

branches/snap-stage3/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)