1
Fork 0

Remove feature gate from let else suggestion

The let else suggestion added by 0d92752b8a
does not need a feature gate any more.
This commit is contained in:
est31 2022-05-16 06:27:31 +02:00
parent bca3cf7e86
commit 5633e863bd
9 changed files with 10 additions and 10 deletions

View file

@ -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",