about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-03-05 21:44:44 +0100
committerGitHub <noreply@github.com>2021-03-05 21:44:44 +0100
commit8dfbc00d277e4aa74f4e8d5639fac8e98c4f3ecf (patch)
tree15ef6ef45bce119924b89f462bae3ca7e6dc812f /compiler/rustc_codegen_llvm/src/builder.rs
parent1a08cb6a36b2c6cad8ffe68e1b819b01d6a1f9c7 (diff)
parent0571bc42637a9f07c4efe7669c48898d6cc8e25e (diff)
downloadrust-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