]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir_build/src/thir/util.rs
Rollup merge of #76961 - bugadani:test-34634, r=Mark-Simulacrum
[rust.git] / compiler / rustc_mir_build / src / thir / util.rs
index 7de60ddda41a3fcbdba2b65c3006bf27d88838b5..aea8667314f485de7da65c35a936efe235e8adf4 100644 (file)
@@ -17,7 +17,7 @@ fn user_substs_applied_to_ty_of_hir_id(
         let mut user_ty = *user_provided_types.get(hir_id)?;
         debug!("user_subts_applied_to_ty_of_hir_id: user_ty={:?}", user_ty);
         let ty = self.typeck_results().node_type(hir_id);
-        match ty.kind {
+        match ty.kind() {
             ty::Adt(adt_def, ..) => {
                 if let UserType::TypeOf(ref mut did, _) = &mut user_ty.value {
                     *did = adt_def.did;