From df3f33870ad48b29a82cce524c1fa092280e76c8 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Mon, 18 Nov 2019 14:58:29 -0500 Subject: [PATCH] Update for ConstKind refactor --- src/librustc_typeck/check/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs index 9182eb10545c..688523dc05b0 100644 --- a/src/librustc_typeck/check/mod.rs +++ b/src/librustc_typeck/check/mod.rs @@ -938,7 +938,7 @@ fn fixup_opaque_types<'tcx, T>(tcx: TyCtxt<'tcx>, val: &T) -> T where T: TypeFol } }, 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 MyTrait for T where ::MyConst == 25`