diff options
| author | bors <bors@rust-lang.org> | 2014-08-24 20:30:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-08-24 20:30:59 +0000 |
| commit | 9e8c30c5530eb73ced57426a357e5456bfa38fcb (patch) | |
| tree | 5f4bb8fd5e5c34d413d3e8e6a80554e6f1e71c87 /src/rustllvm/RustWrapper.cpp | |
| parent | 17f79af31c4d413352a967b6cfe9ba7d70f66ff7 (diff) | |
| parent | 46cf384ba9a598fe3b29d5b2fbb3b83e681ff77d (diff) | |
| download | rust-9e8c30c5530eb73ced57426a357e5456bfa38fcb.tar.gz rust-9e8c30c5530eb73ced57426a357e5456bfa38fcb.zip | |
auto merge of #16718 : Sawyer47/rust/bool-cast, r=pcwalton
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 work, 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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
