From bff287b4a5c3379db3ffb045fe9eb6eea2eed7d7 Mon Sep 17 00:00:00 2001 From: Jules Bertholet Date: Sun, 5 May 2024 12:05:18 -0400 Subject: [PATCH] Remove redundant comment --- compiler/rustc_hir_typeck/src/pat.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/rustc_hir_typeck/src/pat.rs b/compiler/rustc_hir_typeck/src/pat.rs index 5a2fed13d2b2..a4cee5aac8dd 100644 --- a/compiler/rustc_hir_typeck/src/pat.rs +++ b/compiler/rustc_hir_typeck/src/pat.rs @@ -163,8 +163,6 @@ enum MutblCap { /// The contained span, if present, points to an `&` pattern /// that is the reason for the restriction, /// and which will be reported in a diagnostic. - /// (Said diagnostic is shown only if - /// replacing the `&` pattern with `&mut` would allow the code to compile.) WeaklyNot(Option), /// No restriction on mutability