]> git.lizzy.rs Git - rust.git/commit
auto merge of #5198 : youknowone/rust/repeat-count, r=brson
authorbors <bors@rust-lang.org>
Sat, 2 Mar 2013 23:33:39 +0000 (15:33 -0800)
committerbors <bors@rust-lang.org>
Sat, 2 Mar 2013 23:33:39 +0000 (15:33 -0800)
commit347d19934db06f0467377ec138e7415a119f2a3c
treec744ed58153bd4f3316d273ad4343377840e05da
parentd19cbf8da3b59393bdb9c06d8b03e558c7575dbd
parentb662d3c922f1922da55d324aa65dfe268c2bb971
auto merge of #5198 : youknowone/rust/repeat-count, r=brson

Before:
````
test.rs:3:21: 3:30 error: expected constant integer for repeat count but found variable
test.rs:3             let a = ~[0, ..n]; //~ ERROR expected constant integer for repeat count but found variable
                              ^~~~~~~~~
````

After:
````
test.rs:3:27: 3:28 error: expected constant integer for repeat count but found variable
test.rs:3             let a = ~[0, ..n]; //~ ERROR expected constant integer for repeat count but found variable
                                     ^
````
src/librustc/middle/kind.rs
src/librustc/middle/ty.rs
src/librustc/middle/typeck/check/mod.rs