diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-03-05 21:44:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-05 21:44:44 +0100 |
| commit | 8dfbc00d277e4aa74f4e8d5639fac8e98c4f3ecf (patch) | |
| tree | 15ef6ef45bce119924b89f462bae3ca7e6dc812f /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 1a08cb6a36b2c6cad8ffe68e1b819b01d6a1f9c7 (diff) | |
| parent | 0571bc42637a9f07c4efe7669c48898d6cc8e25e (diff) | |
| download | rust-8dfbc00d277e4aa74f4e8d5639fac8e98c4f3ecf.tar.gz rust-8dfbc00d277e4aa74f4e8d5639fac8e98c4f3ecf.zip | |
Rollup merge of #82809 - notriddle:microoptimize-main-js, r=GuillaumeGomez
rustdoc: 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
