]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #103084 - inquisitivecrystal:control-flow, r=scottmcm
authorManish Goregaokar <manishsmail@gmail.com>
Wed, 2 Nov 2022 00:00:37 +0000 (20:00 -0400)
committerGitHub <noreply@github.com>
Wed, 2 Nov 2022 00:00:37 +0000 (20:00 -0400)
commitd4bd794f5e8c63dd22c3e7876eef026af4b93e1e
treed66f8eb100ddb420b5116a935575fd2d7fd8d4bd
parent3aae00428155e2b6d21ef638bbed272e49bc11e0
parent4a92cf61568b6be22a38d2c14bec41a271bbb571
Rollup merge of #103084 - inquisitivecrystal:control-flow, r=scottmcm

Derive `Eq` and `Hash` for `ControlFlow`

There's really no reason for `ControlFlow` not to derive these traits. This is the part of #96416 that no one objected to, but that PR seems stale. The `Eq` derive was also [requested](https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/.60ControlFlow.3A.20Eq.60/near/303610659) by `@lcnr` on Zulip to allow for pattern matching.

This change requires an FCP because it's insta-stable.

Closes #96416.