]> git.lizzy.rs Git - rust.git/commit
Auto merge of #54864 - ljedrz:cleanup_codegen_llvm_back, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Sat, 10 Nov 2018 23:16:25 +0000 (23:16 +0000)
committerbors <bors@rust-lang.org>
Sat, 10 Nov 2018 23:16:25 +0000 (23:16 +0000)
commit6408162ea13446852cb45d9e781e64ba85ec7bb1
tree7e96365ba8883f8ed58e380d1864674855bd2de5
parent6e9b84296223126a0a59bde63a0f97011bb7b0f5
parent2f99d09ef7b622286d9eedef1366399cdcca4d6d
Auto merge of #54864 - ljedrz:cleanup_codegen_llvm_back, r=Mark-Simulacrum

Cleanup codegen_llvm/back

- improve allocations
- use `Cow<'static, str>` where applicable
- use `to_owned` instead of `to_string` with string literals
- remove a redundant `continue`
- possible minor speedup in logic
- use `mem::replace` instead of `swap` where more concise
- remove `'static` from consts
- improve common patterns
- remove explicit `return`s
- whitespace & formatting fixes