about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-02-19 04:41:45 -0800
committerbors <bors@rust-lang.org>2014-02-19 04:41:45 -0800
commit99f838012b58f869dff5292f83a9e9628a8ec436 (patch)
tree2e63e83715581aad5354135e7c83d726e42a284c /src/test/codegen/stack-alloc-string-slice.rs
parentd2f265d195fd0559b8edfb71126785114de92117 (diff)
parent0bdfd0f4c76fa29a4be774937bc72165390b06d6 (diff)
downloadrust-99f838012b58f869dff5292f83a9e9628a8ec436.tar.gz
rust-99f838012b58f869dff5292f83a9e9628a8ec436.zip
auto merge of #12370 : rcxdude/rust/macro_fix, r=alexcrichton
Closes #11692. Instead of returning the original expression, a dummy expression
(with identical span) is returned. This prevents infinite loops of failed
expansions as well as odd double error messages in certain situations.

This is a slightly better fix than #12197, because it does not produce a double error and also fixes a few other cases where an infinite loop could happen.

This does not fix the other issue in #11692 (non-builtin macros not being recognised when expanded inside macros), which I think should be moved into a separate issue.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions