From 50d4943d449f608bd156968938d43952c1847cc1 Mon Sep 17 00:00:00 2001 From: Misaka_15535 <46892084+Misaka299@users.noreply.github.com> Date: Sat, 14 Mar 2026 22:11:52 +0800 Subject: [PATCH] docs: remove stale reference to `check_let_chain` The function `check_let_chain` was removed previously, but it was still referenced in a comment in `check_match.rs`. This commit cleans it up. --- compiler/rustc_mir_build/src/thir/pattern/check_match.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/rustc_mir_build/src/thir/pattern/check_match.rs b/compiler/rustc_mir_build/src/thir/pattern/check_match.rs index e844f1114d61e..6a79401af24ea 100644 --- a/compiler/rustc_mir_build/src/thir/pattern/check_match.rs +++ b/compiler/rustc_mir_build/src/thir/pattern/check_match.rs @@ -101,8 +101,7 @@ struct MatchVisitor<'p, 'tcx> { error: Result<(), ErrorGuaranteed>, } -// Visitor for a thir body. This calls `check_match`, `check_let` and `check_let_chain` as -// appropriate. +// Visitor for a thir body. This calls `check_match` and `check_let` as appropriate. impl<'p, 'tcx> Visitor<'p, 'tcx> for MatchVisitor<'p, 'tcx> { fn thir(&self) -> &'p Thir<'tcx> { self.thir