about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/path.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-01-19 08:04:26 +0000
committerbors <bors@rust-lang.org>2023-01-19 08:04:26 +0000
commit705a96d39bbd97ac0cc8ae119b0f3c097ab62fc0 (patch)
treee150d8f5821c55d5d84905ee20560b9aba175264 /compiler/rustc_parse/src/parser/path.rs
parent65d2f2a5f9c323c88d1068e8e90d0b47a20d491c (diff)
parent50e9f2e6e87911659b6ae63230a5797f4cdf28e1 (diff)
downloadrust-705a96d39bbd97ac0cc8ae119b0f3c097ab62fc0.tar.gz
rust-705a96d39bbd97ac0cc8ae119b0f3c097ab62fc0.zip
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.
Diffstat (limited to 'compiler/rustc_parse/src/parser/path.rs')
0 files changed, 0 insertions, 0 deletions