about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJules Bertholet <julesbertholet@quoi.xyz>2024-05-05 12:05:18 -0400
committerJules Bertholet <julesbertholet@quoi.xyz>2024-05-10 13:47:39 -0400
commitbff287b4a5c3379db3ffb045fe9eb6eea2eed7d7 (patch)
tree14fc09a4cb513a7bb0dabd10be4f41fc5348ccf9
parentd8a798b5e93e36a62d3c114f7439cb1e4299279d (diff)
downloadrust-bff287b4a5c3379db3ffb045fe9eb6eea2eed7d7.tar.gz
rust-bff287b4a5c3379db3ffb045fe9eb6eea2eed7d7.zip
Remove redundant comment
-rw-r--r--compiler/rustc_hir_typeck/src/pat.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_hir_typeck/src/pat.rs b/compiler/rustc_hir_typeck/src/pat.rs
index 5a2fed13d2b..a4cee5aac8d 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<Span>),
 
     /// No restriction on mutability