ErroneousReferencedConstant(Box<ConstEvalErr<'tcx>>),
TypeckError,
- MatchCheckError,
+ CheckMatchError,
}
impl<'tcx> From<ConstMathErr> for ErrKind<'tcx> {
ErroneousReferencedConstant(_) => simple!("could not evaluate referenced constant"),
TypeckError => simple!("type-checking failed"),
- MatchCheckError => simple!("match-checking failed"),
+ CheckMatchError => simple!("match-checking failed"),
}
}
primary_kind: &str)
{
match self.kind {
- ErrKind::TypeckError | ErrKind::MatchCheckError => return,
+ ErrKind::TypeckError | ErrKind::CheckMatchError => return,
_ => {}
}
self.struct_error(tcx, primary_span, primary_kind).emit();