diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-07-25 18:36:18 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-07-25 18:37:03 -0700 |
| commit | da80bd17c30db599de43355f07783ee0bf846162 (patch) | |
| tree | 5b1e19d93a4c37f3f599768ae048c7f44819cf9c /src/libcore | |
| parent | e1d4bd463c29e4224f0ac41652d75ffac8080683 (diff) | |
rustc: Introduce a lang_items pass, part of coherence and operator overloading.
This will also help us remove kinds.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/core.rc | 1 | ||||
| -rw-r--r-- | src/libcore/core.rs | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/libcore/core.rc b/src/libcore/core.rc index d298ff15a9e..11e305e22e8 100644 --- a/src/libcore/core.rc +++ b/src/libcore/core.rc @@ -161,6 +161,7 @@ mod tuple; // Ubiquitous-utility-type modules +mod ops; mod cmp; mod num; mod hash; diff --git a/src/libcore/core.rs b/src/libcore/core.rs index 4738574fdb4..fdf53524188 100644 --- a/src/libcore/core.rs +++ b/src/libcore/core.rs @@ -30,6 +30,8 @@ import float::num; import f32::num; import f64::num; import num::num; +import ops::{const, copy, send, owned}; +import ops::{add, sub, mul, div, modulo, neg, bitops, index}; export path, option, some, none, unreachable; export extensions; @@ -42,6 +44,9 @@ export immutable_copyable_vector, iter_trait_extensions, vec_concat; export base_iter, copyable_iter, extended_iter; export tuple_ops, extended_tuple_ops; export ptr; +// The following exports are the core operators and kinds +export const, copy, send, owned; +export add, sub, mul, div, modulo, neg, bitops, index; // Export the log levels as global constants. Higher levels mean // more-verbosity. Error is the bottom level, default logging level is |
