Skip to content

Commit 34d986f

Browse files
committed
---
yaml --- r: 31483 b: refs/heads/dist-snap c: dfbe697 h: refs/heads/master i: 31481: f22c0c0 31479: 66e2419 v: v3
1 parent 7fd364e commit 34d986f

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
@@ -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: 725a73c4d5eca5a7cbff019ea44e86623e9065fb
10+
refs/heads/dist-snap: dfbe6976c2b05af7ef7182c14232713467595a11
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

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