diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2019-11-18 14:58:29 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2019-11-24 14:37:24 -0500 |
| commit | df3f33870ad48b29a82cce524c1fa092280e76c8 (patch) | |
| tree | 9f98c1f8b018053d9dd327b84620dd6281760ece | |
| parent | cec7d944baa4a1d5ae0c09d68537ce20fe6b47f4 (diff) | |
| download | rust-df3f33870ad48b29a82cce524c1fa092280e76c8.tar.gz rust-df3f33870ad48b29a82cce524c1fa092280e76c8.zip | |
Update for ConstKind refactor
| -rw-r--r-- | src/librustc_typeck/check/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs index 9182eb10545..688523dc05b 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<T: SomeTrait> MyTrait for T where <T as SomeTrait>::MyConst == 25` |
