Skip to content

Commit

Permalink
Update core/src/error/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: jneem <joeneeman@gmail.com>
  • Loading branch information
yannham and jneem authored Feb 15, 2024
1 parent e6f687c commit f9385f4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/src/error/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1324,11 +1324,8 @@ impl IntoDiagnostics<FileId> for EvalError {
);

vec![Diagnostic::error()
.with_message("non-exhaustive pattern matching")
.with_message("unmatched pattern")
.with_labels(labels)
.with_notes(vec![
format!("This match expression isn't exhaustive"),
"It has been applied to an argument which doesn't match any of the branches".to_owned(),
])]
}
EvalError::IllegalPolymorphicTailAccess {
Expand Down

0 comments on commit f9385f4

Please sign in to comment.