about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorWang Xuerui <idontknw.wang@gmail.com>2016-05-14 20:42:47 +0800
committerWang Xuerui <idontknw.wang@gmail.com>2016-07-14 03:10:45 +0800
commit5e55a4411684a9cf3932b0597607cf82433ff3ba (patch)
treeaed9cd2295885841a9b51bf24231017b2383d7f3 /src/rustllvm/RustWrapper.cpp
parenteb5417bf12ea7f709f6603308d86b61a1fc845c5 (diff)
downloadrust-5e55a4411684a9cf3932b0597607cf82433ff3ba.tar.gz
rust-5e55a4411684a9cf3932b0597607cf82433ff3ba.zip
syntax_ext: format: allow multiple formats for one argument
This commit removed the restriction of only allowing one type per argument.
This is achieved by adding mappings between macro arguments and format
placeholders, then taking the mapping into consideration when emitting
the Arguments expression.

syntax_ext: format: fix implicit positional arguments

syntax_ext: format: don't panic if no args given for implicit positional args

Check the list lengths before use.
Fixes regression of `compile-fail/macro-backtrace-println.rs`.

syntax_ext: format: also map CountIsParam indices to expanded args

syntax_ext: format: fix ICE in case of malformed format args
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions