1
Fork 0

Remove PatKind::Never

This commit is contained in:
Zalathar 2024-08-03 21:04:51 +10:00
parent ec1483bf2e
commit bfe88a3bd0
2 changed files with 1 additions and 4 deletions

View file

@ -32,15 +32,12 @@ pub(crate) struct Pat<'tcx> {
#[derive(Clone, Debug)]
pub(crate) enum PatKind {
Never,
Print(String),
}
impl<'tcx> fmt::Display for Pat<'tcx> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self.kind {
PatKind::Never => write!(f, "!"),
PatKind::Print(ref string) => write!(f, "{string}"),
}
}