about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret/machine.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-08-06 03:44:38 +0000
committerbors <bors@rust-lang.org>2024-08-06 03:44:38 +0000
commit8c7e0e160831866bc1a40691a39455aac21271c0 (patch)
treeb854f7aa23a2151e5cb14d67c35c0a3d0f6520ff /compiler/rustc_const_eval/src/interpret/machine.rs
parentc9687a95a602091777e28703aa5abf20f1ce1797 (diff)
parent51b5bb179884d71d4758e05c7913c26f3d03385c (diff)
downloadrust-8c7e0e160831866bc1a40691a39455aac21271c0.tar.gz
rust-8c7e0e160831866bc1a40691a39455aac21271c0.zip
Auto merge of #128200 - estebank:normalize-whitespace, r=pnkfelix
Change output normalization logic to be linear against size of output

Modify the rendered output normalization routine to scan each character *once* and construct a `String` to be printed out to the terminal *once*, instead of using `String::replace` in a loop multiple times. The output doesn't change, but the time spent to prepare a diagnostic is now faster (or rather, closer to what it was before #127528).
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/machine.rs')
0 files changed, 0 insertions, 0 deletions