diff options
| author | Michael Goulet <michael@errs.io> | 2023-10-30 23:35:35 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-10-30 23:46:27 +0000 |
| commit | add09e66f28c92eef41e730a63191cd2a824598a (patch) | |
| tree | 2b387339df575dd148726ba09dbe4fff1b3e3766 /compiler/rustc_ty_utils/src/instance.rs | |
| parent | 31bc7e2c47e82798a392c770611975a6883132c8 (diff) | |
| download | rust-add09e66f28c92eef41e730a63191cd2a824598a.tar.gz rust-add09e66f28c92eef41e730a63191cd2a824598a.zip | |
Some more coroutine renamings
Diffstat (limited to 'compiler/rustc_ty_utils/src/instance.rs')
| -rw-r--r-- | compiler/rustc_ty_utils/src/instance.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/instance.rs b/compiler/rustc_ty_utils/src/instance.rs index c0fe13ac996..1487f40fd99 100644 --- a/compiler/rustc_ty_utils/src/instance.rs +++ b/compiler/rustc_ty_utils/src/instance.rs @@ -271,7 +271,7 @@ fn resolve_associated_item<'tcx>( debug_assert!(tcx.defaultness(trait_item_id).has_value()); Some(Instance::new(trait_item_id, rcvr_args)) } - } else if Some(trait_ref.def_id) == lang_items.gen_trait() { + } else if Some(trait_ref.def_id) == lang_items.coroutine_trait() { let ty::Coroutine(coroutine_def_id, args, _) = *rcvr_args.type_at(0).kind() else { bug!() }; |
