diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index 10fff4db8d61..0e85d7cc0752 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -19,11 +19,6 @@ register_diagnostic!(E0001, r##" one is too specific or the ordering is incorrect. "##) -register_diagnostic!(E0162, r##" - This error is produced by an `if let` expression where the pattern is irrefutable. - An `if let` that can never fail is considered an error. -"##) - register_diagnostics!( E0002, E0003, @@ -156,5 +151,6 @@ register_diagnostics!( E0157, E0158, E0159, - E0161 + E0161, + E0162 )