diff options
| author | lcnr <rust@lcnr.de> | 2025-08-14 16:21:56 +0200 | 
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2025-08-14 16:21:56 +0200 | 
| commit | 82ed949d2c230409bd3d01eb3f03d831a7197b9c (patch) | |
| tree | b61e3f7ad9425198448c19f33e7681ad28af3774 /compiler/rustc_hir_analysis/src | |
| parent | 96ecc9042cbda2be93f969f2b8dc676964ec8f2c (diff) | |
| download | rust-82ed949d2c230409bd3d01eb3f03d831a7197b9c.tar.gz rust-82ed949d2c230409bd3d01eb3f03d831a7197b9c.zip | |
Revert "Remove the witness type from coroutine args"
This reverts commit e9765781b2857da90161157a3fc523f9e1d58848.
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/collect/generics_of.rs | 12 | 
1 files changed, 9 insertions, 3 deletions
| diff --git a/compiler/rustc_hir_analysis/src/collect/generics_of.rs b/compiler/rustc_hir_analysis/src/collect/generics_of.rs index e2462c2d465..31e9c3b80fb 100644 --- a/compiler/rustc_hir_analysis/src/collect/generics_of.rs +++ b/compiler/rustc_hir_analysis/src/collect/generics_of.rs @@ -379,14 +379,20 @@ pub(super) fn generics_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Generics { // for info on the usage of each of these fields. let dummy_args = match kind { ClosureKind::Closure => &["<closure_kind>", "<closure_signature>", "<upvars>"][..], - ClosureKind::Coroutine(_) => { - &["<coroutine_kind>", "<resume_ty>", "<yield_ty>", "<return_ty>", "<upvars>"][..] - } + ClosureKind::Coroutine(_) => &[ + "<coroutine_kind>", + "<resume_ty>", + "<yield_ty>", + "<return_ty>", + "<witness>", + "<upvars>", + ][..], ClosureKind::CoroutineClosure(_) => &[ "<closure_kind>", "<closure_signature_parts>", "<upvars>", "<bound_captures_by_ref>", + "<witness>", ][..], }; | 
