rust/compiler/rustc_data_structures/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
..
base_n Stabilize the size of incr comp object file names 2024-04-22 10:50:07 -04:00
binary_search_util Remove invariant comments 2023-11-05 17:35:37 -06:00
fingerprint remove redundant imports 2023-12-10 10:56:22 +08:00
flock bumpt compiler and tools to windows 0.59 2025-01-21 16:48:44 +03:00
graph Incorporate iter_nodes into graph::DirectedGraph 2025-01-26 14:08:42 +11:00
intern remove redundant imports 2023-12-10 10:56:22 +08:00
obligation_forest Assert that obligations are empty before deeply normalizing 2024-12-02 22:51:18 +00:00
owned_slice Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
profiling Don't use serde_json to serialize a simple JSON object 2023-04-16 15:00:06 +02:00
small_c_str Fix SmallCStr conversion from CStr 2024-02-14 18:40:53 -08:00
snapshot_map Reformat use declarations. 2024-07-29 08:26:52 +10:00
sorted_map Reformat use declarations. 2024-07-29 08:26:52 +10:00
sso Reformat use declarations. 2024-07-29 08:26:52 +10:00
stable_hasher rename BitSet to DenseBitSet 2025-01-11 11:34:01 +00:00
sync Delete the cfg(not(parallel)) serial compiler 2024-11-12 13:38:58 +00:00
tagged_ptr De-abstract tagged pointer abstraction 2025-01-12 14:56:10 +00:00
thousands Overhaul to_readable_str. 2025-01-31 16:04:13 +11:00
transitive_relation get rid of RefCell in TransitiveRelation 2022-08-22 18:08:46 +08:00
vec_cache Improve VecCache under parallel frontend 2024-11-15 18:20:32 -05:00
aligned.rs fix broken intradoclinks 2023-04-14 13:04:58 +00:00
atomic_ref.rs
base_n.rs chore: Fix typos in 'compiler' (batch 1) 2024-09-02 07:42:38 +02:00
captures.rs
fingerprint.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
flat_map_in_place.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
flock.rs Adjust syntax 2024-12-22 17:12:42 -03:00
frozen.rs Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
fx.rs rustc_mir_transform: Make DestinationPropagation stable for queries 2024-01-05 20:55:32 +01:00
hashes.rs chore: Fix typos in 'compiler' (batch 1) 2024-09-02 07:42:38 +02:00
intern.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
jobserver.rs Remove jobserver from Session 2024-12-13 10:21:22 +00:00
lib.rs Overhaul to_readable_str. 2025-01-31 16:04:13 +11:00
marker.rs De-abstract tagged pointer abstraction 2025-01-12 14:56:10 +00:00
memmap.rs Issue 122262: MAP_PRIVATE for more reliability on virtualised filesystems. 2024-03-15 18:31:07 -04:00
owned_slice.rs Delete the cfg(not(parallel)) serial compiler 2024-11-12 13:38:58 +00:00
packed.rs MatchBranchSimplification: Consider empty-unreachable otherwise branch 2024-12-27 10:57:46 +00:00
profiling.rs Adjust syntax 2024-12-22 17:12:42 -03:00
sharded.rs Delete the cfg(not(parallel)) serial compiler 2024-11-12 13:38:58 +00:00
small_c_str.rs Fix SmallCStr conversion from CStr 2024-02-14 18:40:53 -08:00
sorted_map.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
stable_hasher.rs rename BitSet to DenseBitSet 2025-01-11 11:34:01 +00:00
stack.rs format 2024-10-01 17:21:56 -04:00
steal.rs update bootstrap configs 2024-10-15 20:30:23 -07:00
svh.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
sync.rs Delete the cfg(not(parallel)) serial compiler 2024-11-12 13:38:58 +00:00
tagged_ptr.rs De-abstract tagged pointer abstraction 2025-01-12 14:56:10 +00:00
temp_dir.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
thinvec.rs Add ExtractIf for ThinVec 2024-10-12 15:17:03 +01:00
transitive_relation.rs Use more slice patterns inside the compiler 2024-08-07 13:37:52 +02:00
unhash.rs Handle clippy cases of rustc::potential_query_instability lint 2024-10-05 07:34:14 +03:00
unord.rs Add UnordMap::clear method 2024-11-20 18:11:37 +01:00
vec_cache.rs Improve VecCache under parallel frontend 2024-11-15 18:20:32 -05:00
work_queue.rs rename BitSet to DenseBitSet 2025-01-11 11:34:01 +00:00