diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2021-11-19 11:13:24 -0500 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2021-11-19 11:34:41 -0500 |
| commit | 7a4e2ceb922b4b0861735b333f9c983ebed7029f (patch) | |
| tree | 84cd7086051fda2e995ac196f9251c97ca08c7a7 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | a792234388461e3c6b6104cae490aa21b15102e4 (diff) | |
| download | rust-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
