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