Display witnesses of non-exhaustive match

Reporting format follows rustc and shows at most three witnesses.
This commit is contained in:
iDawer 2022-06-20 15:48:09 +05:00
parent ad6810e90b
commit 4ff9bedbed
6 changed files with 320 additions and 80 deletions

View file

@ -150,6 +150,7 @@ pub struct MismatchedArgCount {
pub struct MissingMatchArms {
pub file: HirFileId,
pub match_expr: AstPtr<ast::Expr>,
pub uncovered_patterns: String,
}
#[derive(Debug)]