diff options
| author | Michael Goulet <michael@errs.io> | 2024-10-02 22:21:37 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-10-02 22:48:26 -0400 |
| commit | 7cd466a03606313dad4fa22fd5cf444204138fc8 (patch) | |
| tree | 8270c6fe4ce68514de3e85960007ad8aa3f5ec1f /compiler/rustc_ty_utils | |
| parent | cb7e3695e8e7ea04377f60977b65ba324273b63d (diff) | |
Move in_trait into OpaqueTyOrigin
Diffstat (limited to 'compiler/rustc_ty_utils')
| -rw-r--r-- | compiler/rustc_ty_utils/src/assoc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ty_utils/src/assoc.rs b/compiler/rustc_ty_utils/src/assoc.rs index f8cfeb500a5..e41f2c8ce48 100644 --- a/compiler/rustc_ty_utils/src/assoc.rs +++ b/compiler/rustc_ty_utils/src/assoc.rs @@ -379,8 +379,8 @@ fn associated_type_for_impl_trait_in_trait( tcx: TyCtxt<'_>, opaque_ty_def_id: LocalDefId, ) -> LocalDefId { - let (hir::OpaqueTyOrigin::FnReturn { parent: fn_def_id } - | hir::OpaqueTyOrigin::AsyncFn { parent: fn_def_id }) = + let (hir::OpaqueTyOrigin::FnReturn { parent: fn_def_id, .. } + | hir::OpaqueTyOrigin::AsyncFn { parent: fn_def_id, .. }) = tcx.opaque_type_origin(opaque_ty_def_id) else { bug!("expected opaque for {opaque_ty_def_id:?}"); |
