Matthias Krüger
3fcc79f04a
Rollup merge of #108364 - Nilstrieb:validity-checks-refactor, r=compiler-errors
...
Unify validity checks into a single query
Previously, there were two queries to check whether a type allows the 0x01 or zeroed bitpattern.
I am planning on adding a further initness to check in #100423 , truly uninit for MaybeUninit, which would make this three queries. This seems overkill for such a small feature, so this PR unifies them into one.
I am not entirely happy with the naming and key type and open for improvements.
r? oli-obk
2023-02-27 06:11:52 +01:00
..
2023-01-30 12:26:26 +00:00
2023-02-22 17:04:58 +00:00
2023-02-16 17:05:56 -07:00
2022-08-26 14:27:08 +02:00
2022-11-27 11:19:04 +00:00
2023-01-17 08:09:33 +00:00
2022-10-01 10:03:06 +00:00
2023-02-16 19:44:03 +00:00
2023-02-02 23:09:51 +00:00
2022-12-17 19:34:45 +01:00
2022-07-13 17:47:06 -05:00
2023-01-26 03:50:37 -08:00
2023-02-22 17:04:58 +00:00
2023-02-22 17:04:58 +00:00
2023-02-24 07:32:24 +11:00
2023-02-16 18:30:25 +01:00
2023-02-23 06:18:06 +01:00
2023-01-23 23:56:22 +00:00
2023-02-16 17:05:56 -07:00
2022-08-26 14:27:08 +02:00
2022-08-30 01:40:14 -07:00
2023-02-16 21:33:19 -08:00
2022-12-06 03:47:41 +00:00
2022-12-09 04:53:10 -08:00
2023-02-24 07:32:24 +11:00
2023-02-23 14:05:03 +01:00
2023-02-16 17:05:56 -07:00
2023-02-16 15:26:00 +00:00
2023-02-24 07:32:24 +11:00
2023-02-24 07:32:24 +11:00
2023-02-27 06:11:52 +01:00
2023-02-24 07:32:24 +11:00
2023-02-24 07:32:24 +11:00
2023-02-18 21:45:10 +00:00
2022-07-27 11:24:27 +01:00
2022-12-09 04:53:10 -08:00
2022-08-26 14:27:08 +02:00
2023-01-29 22:09:51 +00:00
2022-08-26 14:27:08 +02:00
2022-12-02 15:55:24 +00:00
2023-01-23 23:56:22 +00:00
2022-07-07 08:11:49 +02:00
2022-08-26 14:27:08 +02:00
2022-07-07 08:11:49 +02:00
2023-02-16 17:05:56 -07:00
2022-11-10 05:14:04 +00:00
2022-08-09 01:51:10 -07:00
2023-01-23 23:56:22 +00:00
2023-02-24 07:32:24 +11:00
2022-12-09 04:53:10 -08:00
2022-12-09 04:53:10 -08:00
2023-02-16 21:33:19 -08:00
2023-02-24 07:32:24 +11:00
2023-02-17 00:19:34 +01:00
2022-11-24 16:26:13 +03:30
2023-01-11 09:32:13 +00:00