Ariel Ben-Yehuda
5c717a6fc2
implement RFC495 semantics for slice patterns
...
non-MIR translation is still not supported for these and will happily ICE.
This is a [breaking-change] for many uses of slice_patterns.
2016-06-09 00:38:38 +03:00
Niko Matsakis
e416518e68
update test cases to reflect new messages
2016-05-02 11:47:10 -04:00
Niko Matsakis
01d2b4ab6b
port compiletest to use JSON output
...
This uncovered a lot of bugs in compiletest and also some shortcomings
of our existing JSON output. We had to add information to the JSON
output, such as suggested text and macro backtraces. We also had to fix
various bugs in the existing tests.
Joint work with jntrnr.
2016-04-21 04:42:24 -04:00
Brian Anderson
1639e51f6e
Feature gate *all* slice patterns. #23121
...
Until some backwards-compatibility hazards are fixed in #23121 ,
these need to be unstable.
[breaking-change]
2015-03-27 12:50:49 -07:00
mdinger
7b82a93be3
Fix testsuite errors
2015-01-12 01:34:13 -05:00
Nick Cameron
2e86929a4a
Allow use of [_ ; n]
syntax for fixed length and repeating arrays.
...
This does NOT break any existing programs because the `[_, ..n]` syntax is also supported.
2014-12-20 15:23:29 +13:00
Jakub Bukaj
a2624fc908
Use the _
representation for integral variables as well
2014-10-30 21:38:20 +01:00
Jakub Bukaj
3db13f4892
Always drop var IDs from type variables modulo -Z verbose, per PR discussion
2014-10-29 23:56:22 +01:00
Jakub Bukaj
66fbe4c22c
Update tests with the new diagnostic tweaks
2014-10-29 23:56:22 +01:00
Jakub Bukaj
1484f9cd46
Update tests with the new error messages
2014-10-24 19:43:47 +02:00
P1start
88baca7486
Rename vector patterns to array patterns
...
Closes #17765 .
2014-10-05 12:08:37 +13:00
P1start
f56c67ba86
Change rustc pretty-printing to print [T, ..n] instead of [T, .. n]
2014-10-03 20:39:56 +13:00
Niko Matsakis
4c01251416
Introduce new inference scheme: variables are now instantiated with at most one type, and region variables are introduced as needed
2014-08-29 10:21:54 -04:00
Jonas Hietala
9968ae2554
Adjust the error messages to match the pattern "expected foo, found bar"
...
Closes #8492
2014-08-24 09:53:01 +02:00
Jakub Wieczorek
9dca26cf92
Add unreachability detection for missized patterns of fixed size vectors
...
Fixed #13482
2014-06-20 17:08:57 +02:00