rust-lang/rust — pull request #16718 by Sawyer47 (2014-08-24 07:22:32+00:00)
Title: Fix const evaluation of cast expression from bool

Current version of rust fails when casting from bool, e.g.
```rust
fn main() {
let _a = false as uint;
let _b = true as uint;
let _c: [bool, ..false as uint];
let _d: [bool, ..true as uint];
// _a and _b works, but _c and _d result in an error
// error: expected constant expr for vector length: can't cast str to uint
}
```
This commit makes it work as expected.