diff options
| author | est31 <MTest31@outlook.com> | 2022-05-16 06:27:31 +0200 | 
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2022-09-15 21:06:45 +0200 | 
| commit | 5633e863bd9b6130be0bef3ffceb6e1bca0ebb56 (patch) | |
| tree | cefa61a65595b2b0f10836a8c9bcf2c7c2e88bbf /compiler | |
| parent | bca3cf7e86b522f58d9a60b4d1c29a34f9483e7e (diff) | |
| download | rust-5633e863bd9b6130be0bef3ffceb6e1bca0ebb56.tar.gz rust-5633e863bd9b6130be0bef3ffceb6e1bca0ebb56.zip  | |
Remove feature gate from let else suggestion
The let else suggestion added by 0d92752b8aac53e033541d04fc7d9677d8bca227 does not need a feature gate any more.
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_mir_build/src/thir/pattern/check_match.rs | 4 | 
1 files changed, 2 insertions, 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 69a8c98b27a..d45b886903b 100644 --- a/compiler/rustc_mir_build/src/thir/pattern/check_match.rs +++ b/compiler/rustc_mir_build/src/thir/pattern/check_match.rs @@ -491,8 +491,8 @@ impl<'p, 'tcx> MatchVisitor<'_, 'p, 'tcx> { err.span_suggestion_verbose( semi_span.shrink_to_lo(), &format!( - "alternatively, on nightly, you might want to use \ - `#![feature(let_else)]` to handle the variant{} that {} matched", + "alternatively, you might want to use \ + let else to handle the variant{} that {} matched", pluralize!(witnesses.len()), match witnesses.len() { 1 => "isn't",  | 
