]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #92568 - Mark-Simulacrum:non-exhaustive-variant-count, r=the8472
authorEric Huss <eric@huss.org>
Sat, 8 Jan 2022 04:20:59 +0000 (20:20 -0800)
committerGitHub <noreply@github.com>
Sat, 8 Jan 2022 04:20:59 +0000 (20:20 -0800)
commit0bd7e2ff2e054952d0b638c8198414cf35f8e621
treef44f1448ad60b4a86a869b8b1e295722cbaaa6d9
parent5cddd24daa8c4bc4c16f2c11115359a882e2bc50
parent57b59af9fb642791a155a446fe965029227ea07a
Rollup merge of #92568 - Mark-Simulacrum:non-exhaustive-variant-count, r=the8472

Add note about non_exhaustive to variant_count

Since `variant_count` isn't returning something opaque, I thought it makes sense to explicitly call out that its return value may change for some enums.

cc #73662