summary refs log tree commit diff
path: root/src/libcore/ops.rs
AgeCommit message (Collapse)AuthorLines
2014-06-24librustc: Remove the fallback to `int` from typechecking.Niko Matsakis-2/+14
This breaks a fair amount of code. The typical patterns are: * `for _ in range(0, 10)`: change to `for _ in range(0u, 10)`; * `println!("{}", 3)`: change to `println!("{}", 3i)`; * `[1, 2, 3].len()`: change to `[1i, 2, 3].len()`. RFC #30. Closes #6023. [breaking-change]
2014-06-09librustc: Implement overloading for the call operator behind a featurePatrick Walton-0/+21
gate. This is part of unboxed closures.
2014-05-28Move trait impls for primitives near trait definitionPiotr Jawniak-0/+177
Closes #12925
2014-05-27Move std::{reflect,repr,Poly} to a libdebug crateAlex Crichton-2/+3
This commit moves reflection (as well as the {:?} format modifier) to a new libdebug crate, all of which is marked experimental. This is a breaking change because it now requires the debug crate to be explicitly linked if the :? format qualifier is used. This means that any code using this feature will have to add `extern crate debug;` to the top of the crate. Any code relying on reflection will also need to do this. Closes #12019 [breaking-change]
2014-05-20core: More concise description for mod opsBrian Anderson-1/+1
2014-05-07core: Inherit the ops moduleAlex Crichton-0/+574
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-81/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-05-04Register snapshotsBrian Anderson-6/+0
2013-05-01Revert rename of Div to QuotBrendan Zabarauskas-6/+0
2013-04-25Use #[cfg(not(stage0))] to exclude items from stage0Brendan Zabarauskas-6/+2
As requested on the mailing list: https://mail.mozilla.org/pipermail/rust-dev/2013-April/003713.html
2013-04-22Rename Div operator trait to Quot and Modulo operator trait to RemBrendan Zabarauskas-0/+16
2013-03-27auto merge of #5574 : thestinger/rust/docstring, r=sanxiynbors-1/+1
2013-03-27Autoref the argument to the index operator (#4920)Niko Matsakis-1/+1
2013-03-27ops: add a docstringDaniel Micay-1/+1
2013-03-22libcore: Remove `pure` from libcore. rs=depurePatrick Walton-13/+13
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-3/+0
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-01-11allow logical negation operator (!) to be overloadedAndrew Paseltiner-1/+5
2013-01-02core: convert an XXX into a FIXME.Erick Tryzelaar-1/+1
2012-12-09Remove transitional codeBrian Anderson-16/+0
2012-12-04librustc: Implement explicit self for Add and Index; add a hack in the ↵Patrick Walton-0/+16
borrow checker to support this. r=nmatsakis
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-11-30core: Make core.rc more readable. CleanupBrian Anderson-21/+1
2012-11-29librustc: Make the Drop trait use explicit selfPatrick Walton-1/+1
2012-11-26libcore: Add explicit self to all overloaded operators but Add and Index. ↵Patrick Walton-10/+10
r=brson
2012-11-07rustc: Implement the Drop trait. r=brsonPatrick Walton-0/+5
2012-10-04Forbid deprecated modes again in coreTim Chevalier-0/+3
Sadly, there's only one file that requires deprecated modes (stackwalk)... So, forbid them everywhere else.
2012-10-02Removing explicit uses of + modeTim Chevalier-1/+1
This removes most explicit uses of the + argument mode. Pending a snapshot, I had to remove the forbid(deprecated_modes) pragma from a bunch of files. I'll put it back! + mode still has to be used in a few places for functions that get moved (see task.rs) The changes outside core and std are due to the to_bytes trait and making the compiler (with legacy modes on) agree with the libraries (with legacy modes off) about modes.
2012-09-28De-export ops, cmp, num. Part of #3583.Graydon Hoare-16/+16
2012-09-25Demode dvecTim Chevalier-1/+1
2012-09-23Register snapshots. Remove redundant Eq impls, Makefile hacksBrian Anderson-80/+0
2012-09-20rustc: De-mode all overloaded operatorsPatrick Walton-16/+80
2012-09-02Camel case core::opsBrian Anderson-18/+16
2012-09-02core: warn(non_camel_case_types) everywhere, with few exceptionsBrian Anderson-0/+2
2012-07-27rustc: Use coherence for operator overloading.Patrick Walton-9/+41
The only use of the old-style impls is now placement new.
2012-07-25libcore: Add missing ops.rsPatrick Walton-0/+66