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_trait_selection | |
| parent | cb7e3695e8e7ea04377f60977b65ba324273b63d (diff) | |
Move in_trait into OpaqueTyOrigin
Diffstat (limited to 'compiler/rustc_trait_selection')
| -rw-r--r-- | compiler/rustc_trait_selection/src/error_reporting/infer/region.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/error_reporting/infer/region.rs b/compiler/rustc_trait_selection/src/error_reporting/infer/region.rs index 673756076b1..a2d717817db 100644 --- a/compiler/rustc_trait_selection/src/error_reporting/infer/region.rs +++ b/compiler/rustc_trait_selection/src/error_reporting/infer/region.rs @@ -1271,7 +1271,7 @@ fn suggest_precise_capturing<'tcx>( let hir::OpaqueTy { bounds, origin, .. } = tcx.hir_node_by_def_id(opaque_def_id).expect_item().expect_opaque_ty(); - let hir::OpaqueTyOrigin::FnReturn { parent: fn_def_id } = *origin else { + let hir::OpaqueTyOrigin::FnReturn { parent: fn_def_id, .. } = *origin else { return; }; |
