rust/compiler/rustc_passes/src
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
..
liveness Reformat use declarations. 2024-07-29 08:26:52 +10:00
abi_test.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
check_attr.rs Auto merge of #119286 - jyn514:linker-output, r=bjorn3 2025-01-25 17:16:33 +00:00
dead.rs Handle all PatExprs in dead code analysis 2025-01-29 15:45:13 +00:00
debugger_visualizer.rs Use SourceMap to load debugger visualizer files 2024-12-08 18:57:04 +00:00
diagnostic_items.rs Add tcx.visible_traits() and use it for producing diagnostics 2025-01-14 08:51:19 +00:00
entry.rs remove support for the #[start] attribute 2025-01-21 06:59:15 -07:00
errors.rs Rollup merge of #136032 - estebank:issue-136028, r=SparrowLii 2025-01-25 23:27:01 -05:00
hir_id_validator.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
input_stats.rs Overhaul to_readable_str. 2025-01-31 16:04:13 +11:00
lang_items.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
layout_test.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
lib.rs Get rid of HIR const checker 2024-11-22 02:32:26 +00:00
lib_features.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
liveness.rs Account for mutable borrow in argument suggestion 2025-01-24 23:34:34 +00:00
loops.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
naked_functions.rs turn hir::ItemKind::Fn into a named-field variant 2025-01-04 11:35:31 +01:00
reachable.rs turn hir::ItemKind::Fn into a named-field variant 2025-01-04 11:35:31 +01:00
stability.rs visit_x_unambig 2025-01-23 06:01:36 +00:00
upvars.rs Add warn(unreachable_pub) to rustc_passes. 2024-08-29 20:18:40 +10:00
weak_lang_items.rs Add support for wasm exception handling to Emscripten target 2025-01-06 10:29:54 +01:00