about summary refs log tree commit diff
path: root/compiler/rustc_hir_pretty
diff options
context:
space:
mode:
authorFrank King <frankking1729@gmail.com>2025-01-19 22:01:11 +0800
committerFrank King <frankking1729@gmail.com>2025-06-15 10:21:29 +0800
commite627f88f88de85cc52ff1c99a076909084806c98 (patch)
tree0f53bd1e6bef6c79ada367f0a6ca8c7ac6eb2f93 /compiler/rustc_hir_pretty
parent49a8ba06848fa8f282fe9055b4178350970bb0ce (diff)
downloadrust-e627f88f88de85cc52ff1c99a076909084806c98.tar.gz
rust-e627f88f88de85cc52ff1c99a076909084806c98.zip
Implement pinned borrows, part of `pin_ergonomics`
Diffstat (limited to 'compiler/rustc_hir_pretty')
-rw-r--r--compiler/rustc_hir_pretty/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_hir_pretty/src/lib.rs b/compiler/rustc_hir_pretty/src/lib.rs
index b23b3125c59..23d37facaa3 100644
--- a/compiler/rustc_hir_pretty/src/lib.rs
+++ b/compiler/rustc_hir_pretty/src/lib.rs
@@ -1339,6 +1339,10 @@ impl<'a> State<'a> {
                 self.word_nbsp("raw");
                 self.print_mutability(mutability, true);
             }
+            hir::BorrowKind::Pin => {
+                self.word_nbsp("pin");
+                self.print_mutability(mutability, true);
+            }
         }
         self.print_expr_cond_paren(expr, expr.precedence() < ExprPrecedence::Prefix);
     }