about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-03-19 09:52:17 -0700
committerbors <bors@rust-lang.org>2013-03-19 09:52:17 -0700
commit3c84bac9462ae853b32f55fcaca2613a7e392d41 (patch)
tree30290aecec90bcffd91a5d905256cd755e583bbe /src/rustllvm/RustWrapper.cpp
parente67448d397ed8f468170d6fba95ceae081ece624 (diff)
parentd7d17dc14e653332848f7f6f994b34eb7fc923ec (diff)
downloadrust-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