This commit is contained in:
Boxy 2022-11-21 04:32:07 +00:00 committed by kadmin
parent f59b91e8a0
commit 4833ce8673
5 changed files with 8 additions and 7 deletions

View file

@ -78,7 +78,7 @@ pub fn is_const_evaluatable<'tcx>(
// compilation with a useful error.
Err(_) if tcx.sess.is_nightly_build()
&& let Ok(Some(ac)) = tcx.expand_abstract_consts(ct)
&& let ty::ConstKind::Expr(_) = ac.kind() =>
&& let ty::ConstKind::Expr(_) = ac.kind() =>
{
tcx.sess
.struct_span_fatal(