about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2021-11-19 11:13:24 -0500
committerNoah Lev <camelidcamel@gmail.com>2021-11-19 11:34:41 -0500
commit7a4e2ceb922b4b0861735b333f9c983ebed7029f (patch)
tree84cd7086051fda2e995ac196f9251c97ca08c7a7 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parenta792234388461e3c6b6104cae490aa21b15102e4 (diff)
downloadrust-7a4e2ceb922b4b0861735b333f9c983ebed7029f.tar.gz
rust-7a4e2ceb922b4b0861735b333f9c983ebed7029f.zip
Use fast comparison against `kw::Empty`
We think `.as_str().lines().next().is_none()` should be equivalent to
`== kw::Empty`.

Co-authored-by: Joshua Nelson <github@jyn.dev>
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions