Files
rust/library/coretests/tests
bors 98e7077b90 Auto merge of #153025 - joboet:bytestr_precision_display, r=Mark-Simulacrum
core: respect precision in `ByteStr` `Display`

Fixes rust-lang/rust#153022.

`ByteStr`'s `Display` implementation didn't respect the precision parameter. Just like `Formatter::pad`, this is fixed by counting off the characters in the string and truncating after the requested length – with the added complication that the `ByteStr` needs to be divided into chunks first. By including a fast path that avoids counting the characters when no parameters were specified this should also fix the performance regressions caused by rust-lang/rust#152865.
2026-03-09 04:13:35 +00:00
..
2025-06-12 12:53:14 -04:00
2025-12-22 21:37:18 -05:00
2025-09-12 13:54:15 -05:00
2026-02-20 10:16:36 +01:00
2025-08-02 17:34:59 -04:00
2026-01-11 16:39:18 +03:00
2025-07-09 16:37:11 +00:00
2025-11-27 20:18:13 +07:00
2025-09-16 10:05:40 -05:00
2025-09-16 10:26:52 -05:00
2026-01-23 15:12:47 +07:00
2025-06-25 17:06:49 -07:00
2025-11-14 18:23:19 +03:00
2025-12-12 06:31:00 +02:00
2026-02-25 22:51:53 +08:00
2025-01-26 10:26:36 +00:00
2025-01-26 10:26:36 +00:00
2025-10-26 21:33:00 -04:00
2026-02-20 10:16:36 +01:00
2025-01-26 10:26:36 +00:00
2025-09-10 16:50:45 -05:00
2025-01-26 10:26:36 +00:00
2025-05-12 15:33:37 +02:00
2025-03-28 10:18:04 +01:00
2025-08-01 08:55:50 +03:00
2025-01-26 10:26:36 +00:00
2026-01-29 11:12:54 -08:00
2025-01-26 10:26:36 +00:00
2025-01-26 10:26:36 +00:00
2025-08-20 20:31:33 -04:00