about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2021-03-05 11:20:31 -0700
committerMichael Howell <michael@notriddle.com>2021-03-05 11:20:31 -0700
commit0571bc42637a9f07c4efe7669c48898d6cc8e25e (patch)
treeb127516148f59878a62e865a6f6fee3fc613ffd2 /compiler/rustc_codegen_llvm/src
parent8fd946c63a6c3aae9788bd459d278cb2efa77099 (diff)
downloadrust-0571bc42637a9f07c4efe7669c48898d6cc8e25e.tar.gz
rust-0571bc42637a9f07c4efe7669c48898d6cc8e25e.zip
Use substrings instead of split to grab enum variant paths
Both versions are about equally readable, but this version avoids scanning
the entire path and building an intermediate array (`split()` in Rust is
a lazy iterator, but not in JavaScript).
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions