about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/transform
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-11-26 21:09:39 +0000
committerMichael Goulet <michael@errs.io>2022-12-13 17:29:26 +0000
commit7f3af726065d9eaabf93d87f22d97f60cca7a5f1 (patch)
treed3501a3fc742f5e786697c99c7e230a497551e1a /compiler/rustc_const_eval/src/transform
parent918ede64740b3610dfd8b43ff0d995261a236ac5 (diff)
downloadrust-7f3af726065d9eaabf93d87f22d97f60cca7a5f1.tar.gz
rust-7f3af726065d9eaabf93d87f22d97f60cca7a5f1.zip
Use ty::OpaqueTy everywhere
Diffstat (limited to 'compiler/rustc_const_eval/src/transform')
-rw-r--r--compiler/rustc_const_eval/src/transform/validate.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/validate.rs b/compiler/rustc_const_eval/src/transform/validate.rs
index 64318f5f54d..62ed8f0c0f7 100644
--- a/compiler/rustc_const_eval/src/transform/validate.rs
+++ b/compiler/rustc_const_eval/src/transform/validate.rs
@@ -241,7 +241,7 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> {
                 };
 
                 let kind = match parent_ty.ty.kind() {
-                    &ty::Opaque(def_id, substs) => {
+                    &ty::Opaque(ty::OpaqueTy { def_id, substs }) => {
                         self.tcx.bound_type_of(def_id).subst(self.tcx, substs).kind()
                     }
                     kind => kind,