fmt
This commit is contained in:
parent
f59b91e8a0
commit
4833ce8673
5 changed files with 8 additions and 7 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue