1
Fork 0

code cleanup with err.emit_unless

This commit is contained in:
yukang 2022-11-04 16:10:32 +08:00
parent 465ac26405
commit 3320879f40
2 changed files with 2 additions and 6 deletions

View file

@ -1310,7 +1310,7 @@ impl<'tcx> TyCtxt<'tcx> {
ty: Ty<'tcx>,
reported: ErrorGuaranteed,
) -> Const<'tcx> {
self.mk_const(ty::ConstS { kind: ty::ConstKind::Error(reported), ty })
self.mk_const(ty::ConstKind::Error(reported), ty)
}
/// Like [TyCtxt::ty_error] but for constants.