about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-05-23 00:26:18 +0800
committerGitHub <noreply@github.com>2018-05-23 00:26:18 +0800
commitaa63dce256d447211d3285941a4323621feabbe4 (patch)
tree6a6c8c7e1fd8ef09f9f22cb0167b66186720364c /src/rustllvm/RustWrapper.cpp
parent98e801ac0be56d20dfdecb235cf912c58f9a9531 (diff)
parent3b8f791bf60c0e77ec713356e841c836eb6a55fb (diff)
downloadrust-aa63dce256d447211d3285941a4323621feabbe4.tar.gz
rust-aa63dce256d447211d3285941a4323621feabbe4.zip
Rollup merge of #50946 - alexcrichton:fix-parse-lifetime, r=petrochenkov
rustc: Fix procedural macros generating lifetime tokens

This commit fixes an accidental regression from #50473 where lifetime tokens
produced by procedural macros ended up getting lost in translation in the
compiler and not actually producing parseable code. The issue lies in the fact
that a lifetime's `Ident` is prefixed with `'`. The `glue` implementation for
gluing joint tokens together forgot to take this into account so the lifetime
inside of `Ident` was missing the leading tick!

The `glue` implementation here is updated to create a new `Symbol` in these
situations to manufacture a new `Ident` with a leading tick to ensure it parses
correctly.

Closes #50942
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions