未验证 提交 df3f3387 编写于 作者: A Aaron Hill

Update for ConstKind refactor

上级 cec7d944
......@@ -938,7 +938,7 @@ fn fold_ty(&mut self, ty: Ty<'tcx>) -> Ty<'tcx> {
}
},
GenericArgKind::Const(old_const) => {
if let ConstValue::Infer(_) = old_const.val {
if let ty::ConstKind::Infer(_) = old_const.val {
// This should never happen - we currently do not support
// 'const projections', e.g.:
// `impl<T: SomeTrait> MyTrait for T where <T as SomeTrait>::MyConst == 25`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册