about summary refs log tree commit diff
path: root/compiler/rustc_ast_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_ast_pretty
parent49a8ba06848fa8f282fe9055b4178350970bb0ce (diff)
downloadrust-e627f88f88de85cc52ff1c99a076909084806c98.tar.gz
rust-e627f88f88de85cc52ff1c99a076909084806c98.zip
Implement pinned borrows, part of `pin_ergonomics`
Diffstat (limited to 'compiler/rustc_ast_pretty')
-rw-r--r--compiler/rustc_ast_pretty/src/pprust/state/expr.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_ast_pretty/src/pprust/state/expr.rs b/compiler/rustc_ast_pretty/src/pprust/state/expr.rs
index ee49246a4bb..32c14e5fe15 100644
--- a/compiler/rustc_ast_pretty/src/pprust/state/expr.rs
+++ b/compiler/rustc_ast_pretty/src/pprust/state/expr.rs
@@ -357,6 +357,10 @@ impl<'a> State<'a> {
                 self.word_nbsp("raw");
                 self.print_mutability(mutability, true);
             }
+            ast::BorrowKind::Pin => {
+                self.word_nbsp("pin");
+                self.print_mutability(mutability, true);
+            }
         }
         self.print_expr_cond_paren(
             expr,