Files
rust/library/core/src
bors 5b210643eb Auto merge of #83908 - Flying-Toast:master, r=davidtwco
Add enum_intrinsics_non_enums lint

There is a clippy lint to prevent calling [`mem::discriminant`](https://doc.rust-lang.org/std/mem/fn.discriminant.html) with a non-enum type. I think the lint is worthy of being included in rustc, given that `discriminant::<T>()` where `T` is a non-enum has an unspecified return value, and there are no valid use cases where you'd actually want this.

I've also made the lint check [variant_count](https://doc.rust-lang.org/core/mem/fn.variant_count.html) (#73662).

closes #83899
2021-10-11 17:12:14 +00:00
..
2021-09-15 03:06:53 +00:00
2021-09-25 20:04:35 +02:00
2021-09-12 02:23:08 +00:00
2021-03-03 11:23:29 +01:00
2021-09-06 13:18:05 +02:00
2021-08-17 07:15:54 +00:00
2021-04-21 14:38:24 +02:00
2021-09-08 20:51:05 -04:00
2021-09-08 20:51:05 -04:00
2021-09-21 10:04:44 -05:00
2020-07-27 19:51:13 -05:00
2020-07-27 19:51:13 -05:00
2020-07-27 19:51:13 -05:00