Nicholas Nethercote 0c47091006 Overhaul to_readable_str.
It's a function that prints numbers with underscores inserted for
readability (e.g. "1_234_567"), used by `-Zmeta-stats` and
`-Zinput-stats`. It's the only thing in `rustc_middle::util::common`,
which is a bizarre location for it.

This commit:
- moves it to `rustc_data_structures`, a more logical crate for it;
- puts it in a module `thousands`, like the similar crates.io crate;
- renames it `format_with_underscores`, which is a clearer name;
- rewrites it to be more concise;
- slightly improves the testing.
2025-01-31 16:04:13 +11:00
..
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2025-01-31 16:04:13 +11:00
2024-12-22 17:12:42 -03:00
2024-07-29 08:26:52 +10:00
2024-12-13 10:21:22 +00:00
2025-01-31 16:04:13 +11:00
2024-12-22 17:12:42 -03:00
2024-07-29 08:26:52 +10:00
2025-01-11 11:34:01 +00:00
2024-10-01 17:21:56 -04:00
2024-10-15 20:30:23 -07:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-10-12 15:17:03 +01:00
2024-11-20 18:11:37 +01:00
2025-01-11 11:34:01 +00:00