mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
Handle the new TryDesugar variant
This commit is contained in:
parent
d9b5b2a264
commit
3ab4914a29
1 changed files with 1 additions and 0 deletions
|
@ -439,6 +439,7 @@ fn match_template(cx: &LateContext, span: Span, source: MatchSource, op: &str, e
|
|||
MatchSource::IfLetDesugar { .. } => format!("if let ... = {}{} {{", op, expr_snippet),
|
||||
MatchSource::WhileLetDesugar => format!("while let ... = {}{} {{", op, expr_snippet),
|
||||
MatchSource::ForLoopDesugar => cx.sess().span_bug(span, "for loop desugared to match with &-patterns!"),
|
||||
MatchSource::TryDesugar => cx.sess().span_bug(span, "`?` operator desugared to match with &-patterns!")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue