about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/util/common.rs
AgeCommit message (Collapse)AuthorLines
2025-01-31Overhaul `to_readable_str`.Nicholas Nethercote-22/+0
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.
2024-09-03Move `MirPass` to `rustc_mir_transform`.Nicholas Nethercote-16/+0
Because that's now the only crate that uses it. Moving stuff out of `rustc_middle` is always welcome. I chose to use `impl crate::MirPass`/`impl crate::MirLint` (with explicit `crate::`) everywhere because that's the only mention of `MirPass`/`MirLint` used in all of these files. (Prior to this change, `MirPass` was mostly imported via `use rustc_middle::mir::*` items.)
2024-04-13remove some ancient debug output, looks unused?klensy-15/+0
2024-04-12remove dead codeklensy-30/+0
2024-02-07MirPass: make name more constklensy-0/+16
2023-07-30inline format!() args up to and including rustc_middleMatthias Krüger-1/+1
2021-11-09Use AddAssign implest31-1/+1
2020-09-26Remove unused #[allow(...)] statements from compiler/est31-2/+0
2020-08-30mv compiler to compiler/mark-0/+69