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
Huon Wilson
0c70ce1424
Update compile fail tests to use isize.
2015-01-08 11:02:24 -05:00
Patrick Walton
416144b827
librustc: Forbid ..
in range patterns.
...
This breaks code that looks like:
match foo {
1..3 => { ... }
}
Instead, write:
match foo {
1...3 => { ... }
}
Closes #17295 .
[breaking-change]
2014-09-30 09:11:26 -07: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
Jakub Wieczorek
abce42afa3
Address review comments
2014-06-20 17:41:19 +02:00
Jakub Wieczorek
34407dcdbb
Provide a witness pattern for non-exhaustive patterns
...
Fixed #4321
2014-06-20 17:08:57 +02:00
Jakub Wieczorek
f5e513b2b2
Check pattern refutability the same way exhaustiveness is checked
2014-06-20 17:08:57 +02:00