Use generic NonZero
.
This commit is contained in:
parent
7531eafa7e
commit
bd8e565e16
22 changed files with 83 additions and 82 deletions
|
@ -2164,7 +2164,7 @@ pub enum TyKind {
|
|||
MacCall(P<MacCall>),
|
||||
/// Placeholder for a `va_list`.
|
||||
CVarArgs,
|
||||
/// Pattern types like `pattern_type!(u32 is 1..=)`, which is the same as `NonZeroU32`,
|
||||
/// Pattern types like `pattern_type!(u32 is 1..=)`, which is the same as `NonZero<u32>`,
|
||||
/// just as part of the type system.
|
||||
Pat(P<Ty>, P<Pat>),
|
||||
/// Sometimes we need a dummy value when no error has occurred.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue