about summary refs log tree commit diff
path: root/compiler/rustc_ast/src/ast.rs
diff options
context:
space:
mode:
authordianne <diannes.gm@gmail.com>2025-05-07 06:59:30 -0700
committerdianne <diannes.gm@gmail.com>2025-05-18 04:21:57 -0700
commitf0b8ec1d71f055cbdb741565eaddabc93bf1ae75 (patch)
treeb5a4b808c917d313c1533cd92f72a2f9ac589e7d /compiler/rustc_ast/src/ast.rs
parent30a0ac66dbb15ee8dd3951499b34df48e1d758a0 (diff)
downloadrust-f0b8ec1d71f055cbdb741565eaddabc93bf1ae75.tar.gz
rust-f0b8ec1d71f055cbdb741565eaddabc93bf1ae75.zip
name resolution for guard patterns
Diffstat (limited to 'compiler/rustc_ast/src/ast.rs')
-rw-r--r--compiler/rustc_ast/src/ast.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs
index 114b9835b98..ab48a2899a7 100644
--- a/compiler/rustc_ast/src/ast.rs
+++ b/compiler/rustc_ast/src/ast.rs
@@ -611,7 +611,7 @@ impl Pat {
     /// Walk top-down and call `it` in each place where a pattern occurs
     /// starting with the root pattern `walk` is called on. If `it` returns
     /// false then we will descend no further but siblings will be processed.
-    pub fn walk(&self, it: &mut impl FnMut(&Pat) -> bool) {
+    pub fn walk<'ast>(&'ast self, it: &mut impl FnMut(&'ast Pat) -> bool) {
         if !it(self) {
             return;
         }