@@ -30,9 +30,6 @@ import float::num;
30
30
import f32:: num;
31
31
import f64:: num;
32
32
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} ;
36
33
37
34
export path, option, some, none, unreachable;
38
35
export extensions;
@@ -45,8 +42,20 @@ export immutable_copyable_vector, iter_trait_extensions, vec_concat;
45
42
export base_iter, copyable_iter, extended_iter;
46
43
export tuple_ops, extended_tuple_ops;
47
44
export ptr;
45
+
48
46
// 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) ]
49
57
export const, copy, send, owned;
58
+ #[ cfg( notest) ]
50
59
export add, sub, mul, div, modulo, neg, bitops, index;
51
60
52
61
// Export the log levels as global constants. Higher levels mean
0 commit comments