diff options
| author | bors <bors@rust-lang.org> | 2013-03-19 09:52:17 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-03-19 09:52:17 -0700 |
| commit | 3c84bac9462ae853b32f55fcaca2613a7e392d41 (patch) | |
| tree | 30290aecec90bcffd91a5d905256cd755e583bbe /src/rustllvm/RustWrapper.cpp | |
| parent | e67448d397ed8f468170d6fba95ceae081ece624 (diff) | |
| parent | d7d17dc14e653332848f7f6f994b34eb7fc923ec (diff) | |
| download | rust-3c84bac9462ae853b32f55fcaca2613a7e392d41.tar.gz rust-3c84bac9462ae853b32f55fcaca2613a7e392d41.zip | |
auto merge of #5112 : luqmana/rust/3469, r=graydon
So this is a partial fix for #3469. Partial because it only works for simple constant expressions like `32/2` and `2+2` and not for any actual constants. For example: ``` const FOO: uint = 2+2; let v: [int * FOO]; ``` results in: ``` error: expected constant expr for vector length: Non-constant path in constant expr ``` This seems to be because at the point of error (`typeck::astconv`) the def_map doesn't contain the constant and thus it can't lookup the actual expression (`2+2` in this case). So, feedback on what I have so far and suggestions for how to address the constant issue?
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
