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_mir_build/src/thir | |
| parent | 31bc7e2c47e82798a392c770611975a6883132c8 (diff) | |
| download | rust-add09e66f28c92eef41e730a63191cd2a824598a.tar.gz rust-add09e66f28c92eef41e730a63191cd2a824598a.zip | |
Some more coroutine renamings
Diffstat (limited to 'compiler/rustc_mir_build/src/thir')
| -rw-r--r-- | compiler/rustc_mir_build/src/thir/cx/mod.rs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/compiler/rustc_mir_build/src/thir/cx/mod.rs b/compiler/rustc_mir_build/src/thir/cx/mod.rs index 8bc4cbb9532..b6adb383fa6 100644 --- a/compiler/rustc_mir_build/src/thir/cx/mod.rs +++ b/compiler/rustc_mir_build/src/thir/cx/mod.rs @@ -149,10 +149,15 @@ impl<'tcx> Cx<'tcx> { Some(env_param) } DefKind::Coroutine => { - let gen_ty = self.typeck_results.node_type(owner_id); - let gen_param = - Param { ty: gen_ty, pat: None, ty_span: None, self_kind: None, hir_id: None }; - Some(gen_param) + let coroutine_ty = self.typeck_results.node_type(owner_id); + let coroutine_param = Param { + ty: coroutine_ty, + pat: None, + ty_span: None, + self_kind: None, + hir_id: None, + }; + Some(coroutine_param) } _ => None, } |
