Ariel Ben-Yehuda
b23648fe4a
improve the printing of substs and trait-refs
2016-04-05 22:56:23 +03:00
Ariel Ben-Yehuda
8a461d940c
suggest adding a where-clause when that can help
...
suggest adding a where-clause when there is an unmet trait-bound that
can be satisfied if some type can implement it.
2016-04-05 20:58:58 +03:00
Jeffrey Seyfried
da41e583d6
Fix fallout in tests
2016-03-30 22:00:48 +00:00
Niko Matsakis
872ce47955
Fallout: tests. As tests frequently elide things, lots of changes
...
here. Some of this may have been poorly rebased, though I tried to be
careful and preserve the spirit of the test.
2015-02-18 10:25:28 -05:00
Tobias Bucher
b4a43f3864
Kill more isize
s
2015-01-31 17:40:40 +01:00
Huon Wilson
441044f071
Update compile-fail tests to use is/us, not i/u.
2015-01-08 11:02:24 -05:00
Nick Cameron
9f07d055f7
markers -> marker
2015-01-07 12:10:31 +13:00
Nick Cameron
503709708c
Change std::kinds
to std::markers
; flatten std::kinds::marker
...
[breaking-change]
2015-01-07 09:45:28 +13:00
Alex Crichton
4b359e3aee
More test fixes!
2015-01-05 22:58:37 -08:00
Alex Crichton
384e218789
Merge remote-tracking branch 'nrc/sized-2' into rollup
...
Conflicts:
src/liballoc/boxed.rs
src/libcollections/btree/map.rs
src/libcollections/slice.rs
src/libcore/borrow.rs
src/libcore/cmp.rs
src/libcore/ops.rs
src/libstd/c_str.rs
src/libstd/collections/hash/map.rs
src/libsyntax/parse/obsolete.rs
src/test/compile-fail/unboxed-closure-sugar-default.rs
src/test/compile-fail/unboxed-closure-sugar-equiv.rs
src/test/compile-fail/unboxed-closure-sugar-lifetime-elision.rs
src/test/compile-fail/unboxed-closure-sugar-region.rs
src/test/compile-fail/unsized3.rs
src/test/run-pass/associated-types-conditional-dispatch.rs
2015-01-05 18:55:41 -08:00
Nick Cameron
e0684e8769
Fallout
2015-01-06 14:20:48 +13:00
Jorge Aparicio
774588fd9d
sed -i -s 's/ for Sized?//g' **/*.rs
2015-01-05 14:56:49 -05:00
Niko Matsakis
594e21f19b
Correct various compile-fail tests. Most of the changes are because we
...
now don't print duplicate errors within one context, so I sometimes
had to break functions into two functions.
2014-12-02 19:05:14 -05:00
Niko Matsakis
b88f86782e
Update error messages in compile-fail tests
2014-09-15 14:58:49 -04:00
Nick Cameron
c2fcd4ca72
Check traits for built-in bounds in impls
2014-09-09 10:41:27 +12:00
Nick Cameron
742f49c961
Forbid unsized rvalues
...
Closes #16813
2014-09-08 09:32:52 +12:00
Nick Cameron
2df3a5b0d1
Check concrete type in impls with no trait
...
closes #16955
2014-09-05 14:38:37 +12:00
Nick Cameron
69a9d23d58
Enable a test for correct treatment of Sized?
2014-09-03 16:50:18 +12:00
Nick Cameron
a0cfda53c4
Change DST syntax: type -> Sized?
...
closes #13367
[breaking-change] Use `Sized?` to indicate a dynamically sized type parameter or trait (used to be `type`). E.g.,
```
trait Tr for Sized? {}
fn foo<Sized? X: Share>(x: X) {}
```
2014-07-08 22:44:31 +12:00
Patrick Walton
a5bb0a3a45
librustc: Remove the fallback to int
for integers and f64
for
...
floating point numbers for real.
This will break code that looks like:
let mut x = 0;
while ... {
x += 1;
}
println!("{}", x);
Change that code to:
let mut x = 0i;
while ... {
x += 1;
}
println!("{}", x);
Closes #15201 .
[breaking-change]
2014-06-29 11:47:58 -07:00
Patrick Walton
090040bf40
librustc: Remove ~EXPR
, ~TYPE
, and ~PAT
from the language, except
...
for `~str`/`~[]`.
Note that `~self` still remains, since I forgot to add support for
`Box<self>` before the snapshot.
How to update your code:
* Instead of `~EXPR`, you should write `box EXPR`.
* Instead of `~TYPE`, you should write `Box<Type>`.
* Instead of `~PATTERN`, you should write `box PATTERN`.
[breaking-change]
2014-05-06 23:12:54 -07:00
Nick Cameron
0540a59382
Check for unsized types in enums.
...
And allow the last field of a struct or variant to be unsized.
2014-04-23 12:30:58 +12:00
Nick Cameron
f78add10cd
Support unsized types with the type
keyword
2014-04-23 12:30:58 +12:00