about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorEduard Burtescu <edy.burt@gmail.com>2015-01-18 13:13:23 +0200
committerEduard Burtescu <edy.burt@gmail.com>2015-01-18 13:13:23 +0200
commit23a553a30398c856ae7d7179b751024334444296 (patch)
treeda078a016aca52bc4e33f18146e2a63fd07ac67a /src/rustllvm/ExecutionEngineWrapper.cpp
parenta833337943300db1c310a4cf9c84b7b4ef4e9468 (diff)
downloadrust-23a553a30398c856ae7d7179b751024334444296.tar.gz
rust-23a553a30398c856ae7d7179b751024334444296.zip
Improve the vec![...] macro with UFCS.
There are two limitations to the macro that this addresses:
1. the expected type is not propagated, coercions don't trigger
2. references inside element expressions don't outlive the `Vec`

Both of these limitations are caused by the block in the
macro expansion, previously needed to trigger a coercion
from `Box<[T; N]>` to `Box<[T]>`, now possible with UFCS.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions