about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry
diff options
context:
space:
mode:
authorThalia Archibald <thalia@archibald.dev>2025-02-06 13:19:11 -0800
committerThalia Archibald <thalia@archibald.dev>2025-02-27 16:41:42 -0800
commit0ca1c9c1dd184da0786e76d674e8f0c7f64ef124 (patch)
tree8c401efd5f03c458687a85be497edc9d146817c8 /tests/codegen/patchable-function-entry
parentf45d4acf1bb635aa010f19f8a749eed8293203b3 (diff)
downloadrust-0ca1c9c1dd184da0786e76d674e8f0c7f64ef124.tar.gz
rust-0ca1c9c1dd184da0786e76d674e8f0c7f64ef124.zip
Count char width at most once in Formatter::pad
When both width and precision flags are specified, then the character
width is counted twice. Instead, record the character width when
truncating it to the precision, so it does not need to be recomputed.
Simplify control flow so the cases are more clear.
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions