summary refs log tree commit diff
path: root/src/test/compile-fail/range-1.rs
AgeCommit message (Collapse)AuthorLines
2018-07-10Fix typo in error message E0277Rémy Rakic-1/+1
2018-06-19Update message for `!Sized` typesEsteban Küber-1/+1
2018-06-19Add message to `rustc_on_unimplemented` attributes in coreEsteban Küber-1/+1
2017-07-08Remove unused Add bounds in iterator for ranges impls.Simon Sapin-1/+0
2016-07-28Move to {integer} and {float}Jonathan Turner-1/+1
2016-07-28Rename _ to {numerics} for unknown numeric typesJonathan Turner-1/+1
2016-07-03std: Stabilize APIs for the 1.11.0 releaseAlex Crichton-3/+2
Although the set of APIs being stabilized this release is relatively small, the trains keep going! Listed below are the APIs in the standard library which have either transitioned from unstable to stable or those from unstable to deprecated. Stable * `BTreeMap::{append, split_off}` * `BTreeSet::{append, split_off}` * `Cell::get_mut` * `RefCell::get_mut` * `BinaryHeap::append` * `{f32, f64}::{to_degrees, to_radians}` - libcore stabilizations mirroring past libstd stabilizations * `Iterator::sum` * `Iterator::product` Deprecated * `{f32, f64}::next_after` * `{f32, f64}::integer_decode` * `{f32, f64}::ldexp` * `{f32, f64}::frexp` * `num::One` * `num::Zero` Added APIs (all unstable) * `iter::Sum` * `iter::Product` * `iter::Step` - a few methods were added to accomodate deprecation of One/Zero Removed APIs * `From<Range<T>> for RangeInclusive<T>` - everything about `RangeInclusive` is unstable Closes #27739 Closes #27752 Closes #32526 Closes #33444 Closes #34152 cc #34529 (new tracking issue)
2016-05-13rewrite obligation forest. cycles still handled incorrectly.Ariel Ben-Yehuda-1/+3
2016-05-03add comments and testsAriel Ben-Yehuda-1/+0
2016-04-05improve the printing of substs and trait-refsAriel Ben-Yehuda-2/+2
2016-04-05suggest adding a where-clause when that can helpAriel Ben-Yehuda-2/+2
suggest adding a where-clause when there is an unmet trait-bound that can be satisfied if some type can implement it.
2016-03-30Fix fallout in testsJeffrey Seyfried-2/+2
2016-02-27adjust range testsAlex Burka-1/+1
Since the desugaring removed special handling for ranges, the error message changed and so I had to adjust `range-1`. Turns out there was a bug where borrowck was too restrictive in some rare cases of constructing ranges from literals. The `range-2` test enshrined this bug -- now it's adjusted to test a case that's actually wrong.
2016-01-16Detect cycles and specialize error reporting for Sized. It is importantNiko Matsakis-3/+2
to get the `Sized` error usable, since that hits new users frequently. Further work is needed for the error reporting for non-Sized cycle cases; those currently just fallback to the old path. Also adjust tests.
2015-04-07Fix range performance regressionAaron Turon-0/+1
A recent change to the implementation of range iterators meant that, even when stepping by 1, the iterators *always* involved checked arithmetic. This commit reverts to the earlier behavior (while retaining the refactoring into traits). Fixes #24095 cc #24014
2015-03-31Stabilize std::numAaron Turon-3/+4
This commit stabilizes the `std::num` module: * The `Int` and `Float` traits are deprecated in favor of (1) the newly-added inherent methods and (2) the generic traits available in rust-lang/num. * The `Zero` and `One` traits are reintroduced in `std::num`, which together with various other traits allow you to recover the most common forms of generic programming. * The `FromStrRadix` trait, and associated free function, is deprecated in favor of inherent implementations. * A wide range of methods and constants for both integers and floating point numbers are now `#[stable]`, having been adjusted for integer guidelines. * `is_positive` and `is_negative` are renamed to `is_sign_positive` and `is_sign_negative`, in order to address #22985 * The `Wrapping` type is moved to `std::num` and stabilized; `WrappingOps` is deprecated in favor of inherent methods on the integer types, and direct implementation of operations on `Wrapping<X>` for each concrete integer type `X`. Closes #22985 Closes #21069 [breaking-change]
2015-03-05Remove integer suffixes where the types in compiled code are identical.Eduard Burtescu-1/+1
2015-02-01Auto merge of #21806 - edwardw:new-range-impl, r=alexcrichtonbors-4/+1
The new `::ops::Range` has separated implementations for each of the numeric types, while the old `::iter::Range` has one for type `Int`. However, we do not take output bindings into account when selecting traits. So it confuses `typeck` and makes the new range does not work as good as the old one when it comes to type inference. This patch implements `Iterator` for the new range for one type `Int`. This limitation could be lifted, however, if we ever reconsider the output types' role in type inference. Closes #21595 Closes #21649 Closes #21672
2015-02-01Fix falloutEdward Wang-4/+1
2015-01-31Kill more `isize`sTobias Bucher-2/+2
2015-01-30fix testsJorge Aparicio-1/+4
2015-01-19remove unnecessary parentheses from range notationJorge Aparicio-1/+1
2015-01-08Update compile-fail tests to use is/us, not i/u.Huon Wilson-2/+2
2015-01-07remove some `slicing_syntax` feature gatesJorge Aparicio-1/+0
2015-01-07markers -> markerNick Cameron-1/+1
2015-01-07Change `std::kinds` to `std::markers`; flatten `std::kinds::marker`Nick Cameron-1/+1
[breaking-change]
2014-12-30Fallout from mut slicesNick Cameron-0/+1
2014-12-24Review changesNick Cameron-1/+1
2014-12-24TestsNick Cameron-0/+26