about summary refs log tree commit diff
path: root/compiler/rustc_ast_pretty
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2025-07-06 12:59:42 -0700
committerJubilee Young <workingjubilee@gmail.com>2025-07-06 15:03:08 -0700
commit0a4f87a144616f35da510b82acc288aceebd5b9b (patch)
tree9bd9dce4ec6515eb5b9097d529c7bcbc4001b4fa /compiler/rustc_ast_pretty
parent3c95364c4afc3f15749f5a511d599af086f5456e (diff)
downloadrust-0a4f87a144616f35da510b82acc288aceebd5b9b.tar.gz
rust-0a4f87a144616f35da510b82acc288aceebd5b9b.zip
compiler: rename {ast,hir}::BareFn* to FnPtr*
Fix some comments and related types and locals where it is obvious, e.g.
- bare_fn -> fn_ptr
- LifetimeBinderKind::BareFnType -> LifetimeBinderKind::FnPtrType

Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
Diffstat (limited to 'compiler/rustc_ast_pretty')
-rw-r--r--compiler/rustc_ast_pretty/src/pprust/state.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_pretty/src/pprust/state.rs b/compiler/rustc_ast_pretty/src/pprust/state.rs
index 9802ac90c9a..aff98c63bcb 100644
--- a/compiler/rustc_ast_pretty/src/pprust/state.rs
+++ b/compiler/rustc_ast_pretty/src/pprust/state.rs
@@ -1285,7 +1285,7 @@ impl<'a> State<'a> {
                 self.print_type(typ);
                 self.pclose();
             }
-            ast::TyKind::BareFn(f) => {
+            ast::TyKind::FnPtr(f) => {
                 self.print_ty_fn(f.ext, f.safety, &f.decl, None, &f.generic_params);
             }
             ast::TyKind::UnsafeBinder(f) => {