summary refs log tree commit diff
path: root/src/test/run-pass/deriving-zero.rs
AgeCommit message (Collapse)AuthorLines
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