about summary refs log tree commit diff
path: root/src/test/run-pass/deriving-zero.rs
AgeCommit message (Collapse)AuthorLines
2015-01-03Remove deprecated functionalityAlex Crichton-71/+0
This removes a large array of deprecated functionality, regardless of how recently it was deprecated. The purpose of this commit is to clean out the standard libraries and compiler for the upcoming alpha release. Some notable compiler changes were to enable warnings for all now-deprecated command line arguments (previously the deprecated versions were silently accepted) as well as removing deriving(Zero) entirely (the trait was removed). The distribution no longer contains the libtime or libregex_macros crates. Both of these have been deprecated for some time and are available externally.
2015-01-03use assoc types in binop traitsJorge Aparicio-4/+12
2015-01-02Merge remote-tracking branch 'origin/master' into rollupAlex Crichton-3/+3
Conflicts: src/test/compile-fail/borrowck-loan-rcvr-overloaded-op.rs
2015-01-02std: Stabilize the prelude moduleAlex Crichton-1/+1
This commit is an implementation of [RFC 503][rfc] which is a stabilization story for the prelude. Most of the RFC was directly applied, removing reexports. Some reexports are kept around, however: * `range` remains until range syntax has landed to reduce churn. * `Path` and `GenericPath` remain until path reform lands. This is done to prevent many imports of `GenericPath` which will soon be removed. * All `io` traits remain until I/O reform lands so imports can be rewritten all at once to `std::io::prelude::*`. This is a breaking change because many prelude reexports have been removed, and the RFC can be consulted for the exact list of removed reexports, as well as to find the locations of where to import them. [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md [breaking-change] Closes #20068
2015-01-02Use `derive` rather than `deriving` in testsNick Cameron-3/+3
2014-12-13Fix run-pass testsJorge Aparicio-5/+5
2014-07-26Remove managed_box gate from testsBrian Anderson-1/+0
No longer does anything.
2014-04-14Use new attribute syntax in python files in src/etc too (#13478)Manish Goregaokar-1/+1
2014-01-20Add operator trait constraints to std::num::{Zero, One} and document their ↵Brendan Zabarauskas-19/+42
appropriate use Zero and One have precise definitions in mathematics. Documentation has been added to describe the appropriate uses for these traits and the laws that they should satisfy. For more information regarding these identities, see the following wikipedia pages: - http://wikipedia.org/wiki/Additive_identity - http://wikipedia.org/wiki/Multiplicative_identity
2014-01-03test: De-`@mut` the test suitePatrick Walton-1/+1
2013-10-23register snapshotsDaniel Micay-0/+2
2013-10-01remove the `float` typeDaniel Micay-1/+1
It is simply defined as `f64` across every platform right now. A use case hasn't been presented for a `float` type defined as the highest precision floating point type implemented in hardware on the platform. Performance-wise, using the smallest precision correct for the use case greatly saves on cache space and allows for fitting more numbers into SSE/AVX registers. If there was a use case, this could be implemented as simply a type alias or a struct thanks to `#[cfg(...)]`. Closes #6592 The mailing list thread, for reference: https://mail.mozilla.org/pipermail/rust-dev/2013-July/004632.html
2013-09-25Fix run-pass tests to have 'pub fn main'Alex Crichton-1/+1
This is required by the check-fast target because each test is slurped up into a submodule.
2013-09-12std: Remove Zero impl for OptionErick Tryzelaar-1/+0
Options are not numeric types, so it doesn't make sense for them to implement Zero.
2013-09-12std: Remove Zero impl from vecErick Tryzelaar-4/+3
Vecs are not numeric types, so it doesn't make sense for them to implement Zero.
2013-08-27librustc: Ensure that type parameters are in the right positions in paths.Patrick Walton-1/+2
This removes the stacking of type parameters that occurs when invoking trait methods, and fixes all places in the standard library that were relying on it. It is somewhat awkward in places; I think we'll probably want something like the `Foo::<for T>::new()` syntax.
2013-08-26Fix deriving-zero testCorey Richardson-2/+0
2013-07-31Implement Zero for unitStepan Koltsov-0/+1
2013-07-24Implement std::num::Zero for boolBirunthan Mohanathas-0/+1
Closes #8024.
2013-06-14Implement a deriving(Zero) attributeAlex Crichton-0/+40