diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-08-08 04:56:41 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-08-14 21:13:06 +1000 |
| commit | 8296ad04568597fbfab4460530032cd54f5cd26b (patch) | |
| tree | b63ddf8b7d14fca5de66358f868d558f41ac21fc /Cargo.lock | |
| parent | 3672a55b7cfd0a12e7097197b6242872473ffaa7 (diff) | |
| download | rust-8296ad04568597fbfab4460530032cd54f5cd26b.tar.gz rust-8296ad04568597fbfab4460530032cd54f5cd26b.zip | |
Print regions in `type_name`.
Currently they are skipped, which is a bit weird, and it sometimes causes malformed output like `Foo<>` and `dyn Bar<, A = u32>`. Most regions are erased by the time `type_name` does its work. So all regions are now printed as `'_` in non-optional places. Not perfect, but better than the status quo. `c_name` is updated to trim lifetimes from MIR pass names, so that the `PASS_NAMES` sanity check still works. It is also renamed as `simplify_pass_type_name` and made non-const, because it doesn't need to be const and the non-const implementation is much shorter. The commit also renames `should_print_region` as `should_print_optional_region`, which makes it clearer that it only applies to some regions. Fixes #145168.
Diffstat (limited to 'Cargo.lock')
0 files changed, 0 insertions, 0 deletions
