about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorNika Layzell <nika@thelayzells.com>2022-06-19 13:56:04 -0400
committerNika Layzell <nika@thelayzells.com>2022-06-24 13:43:26 -0400
commitfb5b7b4af2c46a2ac2117a49b3209569e7b6ddad (patch)
treeb97d509837020fc4a21babfd82f6ad72baf5c714 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent7036449c774860a5b348dbbe01c20704c557382e (diff)
downloadrust-fb5b7b4af2c46a2ac2117a49b3209569e7b6ddad.tar.gz
rust-fb5b7b4af2c46a2ac2117a49b3209569e7b6ddad.zip
proc_macro: Fix expand_expr expansion of bool literals
Previously, the expand_expr method would expand bool literals as a
`Literal` token containing a `LitKind::Bool`, rather than as an `Ident`.
This is not a valid token, and the `LitKind::Bool` case needs to be
handled seperately.

Tests were added to more deeply compare the streams in the expand-expr
test suite to catch mistakes like this in the future.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions