Skip to content

Commit df3f338

Browse files
committed
Update for ConstKind refactor
1 parent cec7d94 commit df3f338

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_typeck/check

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ fn fixup_opaque_types<'tcx, T>(tcx: TyCtxt<'tcx>, val: &T) -> T where T: TypeFol
938938
}
939939
},
940940
GenericArgKind::Const(old_const) => {
941-
if let ConstValue::Infer(_) = old_const.val {
941+
if let ty::ConstKind::Infer(_) = old_const.val {
942942
// This should never happen - we currently do not support
943943
// 'const projections', e.g.:
944944
// `impl<T: SomeTrait> MyTrait for T where <T as SomeTrait>::MyConst == 25`

0 commit comments

Comments
 (0)