Huon Wilson
0c70ce1424
Update compile fail tests to use isize.
2015-01-08 11:02:24 -05:00
P1start
108bca53f0
Make the parser’s ‘expected <foo>, found <bar>’ errors more accurate
...
As an example of what this changes, the following code:
let x: [int ..4];
Currently spits out ‘expected `]`, found `..`’. However, a comma would also be
valid there, as would a number of other tokens. This change adjusts the parser
to produce more accurate errors, so that that example now produces ‘expected one
of `(`, `+`, `,`, `::`, or `]`, found `..`’.
2014-12-04 13:47:35 +13: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
Richo Healey
12c334a77b
std: Rename the ToStr trait to ToString, and to_str to to_string.
...
[breaking-change]
2014-07-08 13:01:43 -07:00
Richo Healey
4348e23b26
std: Remove String's to_owned
2014-05-27 11:11:15 -07:00
Richo Healey
553074506e
core: rename strbuf::StrBuf to string::String
...
[breaking-change]
2014-05-24 21:48:10 -07:00
Patrick Walton
95e310abdc
test: Remove all uses of ~str from the test suite.
2014-05-14 14:58:00 -07:00
Richo Healey
919889a1d6
Replace all ~"" with "".to_owned()
2014-04-18 17:25:34 -07:00
Patrick Walton
9143688197
librustc: Replace impl Type : Trait with impl Trait for Type. rs=implflipping
2013-02-14 14:44:12 -08:00
Erick Tryzelaar
9adfa59d8e
core: convert ToStr::to_str to take explicit &self
2013-02-03 20:47:26 -08:00
Graydon Hoare
d1affff623
Reliciense makefiles and testsuite. Yup.
2012-12-10 17:32:58 -08:00
Brian Anderson
cd3956054d
Fix obsolete struct syntax in test
2012-09-07 17:54:47 -07:00
Tim Chevalier
f5093dff7b
Remove support for multiple traits in a single impl
...
There was half-working support for them, but they were never fully
implemented or even approved. Remove them altogether.
Closes #3410
2012-09-07 17:22:04 -07:00