diff options
| author | bors <bors@rust-lang.org> | 2022-02-24 17:18:07 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-02-24 17:18:07 +0000 |
| commit | 4b043faba34ccc053a4d0110634c323f6c03765e (patch) | |
| tree | d646b4868c46b8cf135d260a873e6f22d3875f9c /compiler/rustc_codegen_llvm/src/debuginfo/utils.rs | |
| parent | 3d127e2040b57157936f5f24e114a8b4c9a505ef (diff) | |
| parent | 2ee6d55c62e9b62a20b5a87a7665e9836b879120 (diff) | |
| download | rust-4b043faba34ccc053a4d0110634c323f6c03765e.tar.gz rust-4b043faba34ccc053a4d0110634c323f6c03765e.zip | |
Auto merge of #94131 - Mark-Simulacrum:fmt-string, r=oli-obk
Always format to internal String in FmtPrinter This avoids monomorphizing for different parameters, decreasing generic code instantiated downstream from rustc_middle -- locally seeing 7% unoptimized LLVM IR line wins on rustc_borrowck, for example. We likely can't/shouldn't get rid of the Result-ness on most functions, though some further cleanup avoiding fmt::Error where we now know it won't occur may be possible, though somewhat painful -- fmt::Write is a pretty annoying API to work with in practice when you're trying to use it infallibly.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo/utils.rs')
0 files changed, 0 insertions, 0 deletions
