Commit Graph

4 Commits

Author SHA1 Message Date
bors 705a96d39b Auto merge of #106989 - clubby789:is-zero-num, r=scottmcm
Implement `alloc::vec::IsZero` for `Option<$NUM>` types

Fixes #106911

Mirrors the `NonZero$NUM` implementations with an additional `assert_zero_valid`.
`None::<i32>` doesn't stricly satisfy `IsZero` but for the purpose of allocating we can produce more efficient codegen.
2023-01-19 08:04:26 +00:00
clubby789 b94a29a25f Implement `alloc::vec::IsZero` for `Option<$NUM>` types 2023-01-18 15:15:15 +00:00
Nilstrieb f1255380ac Add more codegen tests 2023-01-17 16:23:22 +01:00
Albert Larsan cf2dff2b1e
Move /src/test to /tests 2023-01-11 09:32:08 +00:00