about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-08-17 09:55:14 +0000
committerbors <bors@rust-lang.org>2022-08-17 09:55:14 +0000
commitd6412b58666ee399bdc56a868a79ed322d6a3fcd (patch)
tree46463e1305ee6614b7009bcc1f00670a01e41b1b /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parentdd9ead591e6df07bec6f9dfd72ae9e7c98158377 (diff)
parenta3409c3a83fb1d8139bac8b3e438f56f2ac633a3 (diff)
downloadrust-d6412b58666ee399bdc56a868a79ed322d6a3fcd.tar.gz
rust-d6412b58666ee399bdc56a868a79ed322d6a3fcd.zip
Auto merge of #13034 - lowr:fix/regression-from-12993, r=lowr
fix: escape keywords used as names in earlier editions

Fixes #13030

There are keywords in Rust 2018+ that you can use as names without escaping when your crate is in Rust 2015 e.g. "try". We need to be consistent on how to keep track of the names regardless of how they are actually written in each crate. This patch attempts at it by taking such names into account and storing them uniformly in their escaped form.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions