about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-01-08 23:25:57 +0000
committerbors <bors@rust-lang.org>2021-01-08 23:25:57 +0000
commit68bcd202fe2fcf2748ce091071ea2242c228248b (patch)
treed8a7d3ecd7db043cf94b558c6965bd457c209b20 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent2950c8e1cb32e864b599c4b4dae896d29d86e5e7 (diff)
parent7871ebaab9af1fffc3e68bae9f95c9db1e3863e5 (diff)
downloadrust-68bcd202fe2fcf2748ce091071ea2242c228248b.tar.gz
rust-68bcd202fe2fcf2748ce091071ea2242c228248b.zip
Auto merge of #6569 - camsteffen:symbol-comparison, r=Manishearth
Internal lint symbol comparisons

changelog: none

* Added awareness of `rustc_span::symbol::kw::*` symbols.
* Compare with const symbols: `symbol.as_str() == "self"` => `symbol == kw::SelfLower`
* Don't compare symbols by string: `a.as_str() == b.as_str()` => `a == b`
* Lint comparing with `to_ident_string` or `to_string` instead of `Symbol::as_str`.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions