]> git.lizzy.rs Git - rust.git/commitdiff
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)
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


Trivial merge