Skip to content

Commit 64dc377

Browse files
committed
use def_id
1 parent 7c0fb38 commit 64dc377

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_borrowck/src/region_infer/opaque_types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
299299
infcx
300300
.report_mismatched_types(
301301
&ObligationCause::misc(instantiated_ty.span, body_id),
302-
self.tcx.mk_opaque(def_id, id_substs),
302+
self.tcx.mk_opaque(def_id.to_def_id(), id_substs),
303303
definition_ty,
304304
err,
305305
)

0 commit comments

Comments
 (0)