diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-08-03 21:14:01 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-08-06 12:58:23 +1000 |
| commit | 42a1042f9b915b48d1e7176802cb130d029b3b48 (patch) | |
| tree | b25d7108545a989f3831f25316ea76be3047e154 /compiler/rustc_const_eval/src | |
| parent | b8adda6194dfe3296fff73812dcaa88c58a4f0f1 (diff) | |
| download | rust-42a1042f9b915b48d1e7176802cb130d029b3b48.tar.gz rust-42a1042f9b915b48d1e7176802cb130d029b3b48.zip | |
Rename some `PrettyPrinter` methods.
More consistency.
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/util/type_name.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/src/util/type_name.rs b/compiler/rustc_const_eval/src/util/type_name.rs index 2f74f998fd0..d50507f65eb 100644 --- a/compiler/rustc_const_eval/src/util/type_name.rs +++ b/compiler/rustc_const_eval/src/util/type_name.rs @@ -83,7 +83,7 @@ impl<'tcx> Printer<'tcx> for TypeNamePrinter<'tcx> { self_ty: Ty<'tcx>, trait_ref: Option<ty::TraitRef<'tcx>>, ) -> Result<(), PrintError> { - self.pretty_path_qualified(self_ty, trait_ref) + self.pretty_print_path_with_qualified(self_ty, trait_ref) } fn print_path_with_impl( @@ -92,7 +92,7 @@ impl<'tcx> Printer<'tcx> for TypeNamePrinter<'tcx> { self_ty: Ty<'tcx>, trait_ref: Option<ty::TraitRef<'tcx>>, ) -> Result<(), PrintError> { - self.pretty_path_append_impl( + self.pretty_print_path_with_impl( |cx| { print_prefix(cx)?; |
