diff options
| author | Michael Howell <michael@notriddle.com> | 2021-03-05 11:20:31 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2021-03-05 11:20:31 -0700 |
| commit | 0571bc42637a9f07c4efe7669c48898d6cc8e25e (patch) | |
| tree | b127516148f59878a62e865a6f6fee3fc613ffd2 /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 8fd946c63a6c3aae9788bd459d278cb2efa77099 (diff) | |
| download | rust-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/builder.rs')
0 files changed, 0 insertions, 0 deletions
