diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-08-01 09:18:35 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-08-03 19:58:00 +1000 |
| commit | e7d6a0776b06673b5a6258bd7476f1f39ab86756 (patch) | |
| tree | ff6cd9d97f4f08fd4ad93ca9efe615049ea2641b /compiler/rustc_symbol_mangling/src | |
| parent | bd0a308ca28d599d0dd798e925d1cb57bc96e616 (diff) | |
| download | rust-e7d6a0776b06673b5a6258bd7476f1f39ab86756.tar.gz rust-e7d6a0776b06673b5a6258bd7476f1f39ab86756.zip | |
Remove `type_name::AbsolutePathPrinter::comma_sep`.
It's equivalent to the default `PrettyPrinter::comma_sep`.
Diffstat (limited to 'compiler/rustc_symbol_mangling/src')
| -rw-r--r-- | compiler/rustc_symbol_mangling/src/legacy.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_symbol_mangling/src/legacy.rs b/compiler/rustc_symbol_mangling/src/legacy.rs index b75e793dfd3..a3bc650427b 100644 --- a/compiler/rustc_symbol_mangling/src/legacy.rs +++ b/compiler/rustc_symbol_mangling/src/legacy.rs @@ -460,6 +460,8 @@ impl<'tcx> PrettyPrinter<'tcx> for SymbolPrinter<'tcx> { fn should_print_region(&self, _region: ty::Region<'_>) -> bool { false } + + // Identical to `PrettyPrinter::comma_sep` except there is no space after each comma. fn comma_sep<T>(&mut self, mut elems: impl Iterator<Item = T>) -> Result<(), PrintError> where T: Print<'tcx, Self>, |
