about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-26 04:25:53 +0000
committerbors <bors@rust-lang.org>2023-12-26 04:25:53 +0000
commit91859ed80a067d89f20a0883ffb3a3af277ce92c (patch)
tree0a1f51ad525b0fdbbc7f2d6241fce0094430d82d /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent620a1e4c2fdea7f4282679fb68abc34823f99bea (diff)
parente0097f5323f700768b2b8ceb217b4394ff447da6 (diff)
downloadrust-91859ed80a067d89f20a0883ffb3a3af277ce92c.tar.gz
rust-91859ed80a067d89f20a0883ffb3a3af277ce92c.zip
Auto merge of #119258 - compiler-errors:closure-kind, r=eholk
Make closures carry their own ClosureKind

Right now, we use the "`movability`" field of `hir::Closure` to distinguish a closure and a coroutine. This is paired together with the `CoroutineKind`, which is located not in the `hir::Closure`, but the `hir::Body`. This is strange and redundant.

This PR introduces `ClosureKind` with two variants -- `Closure` and `Coroutine`, which is put into `hir::Closure`. The `CoroutineKind` is thus removed from `hir::Body`, and `Option<Movability>` no longer needs to be a stand-in for "is this a closure or a coroutine".

r? eholk
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions