Rollup merge of #43098 - alexcrichton:more-proc-macro, r=jseyfried
Add `isize` and `usize` constructors to Literal This commit fills out the remaining integer literal constructors on the `proc_macro::Literal` type with `isize` and `usize`. (I think these were just left out by accident)
This commit is contained in:
commit
2510116944
@ -303,7 +303,7 @@ impl Literal {
|
||||
Literal(token::Literal(token::Lit::Integer(Symbol::intern(&n.to_string())), None))
|
||||
}
|
||||
|
||||
int_literals!(u8, i8, u16, i16, u32, i32, u64, i64);
|
||||
int_literals!(u8, i8, u16, i16, u32, i32, u64, i64, usize, isize);
|
||||
fn typed_integer(n: i128, kind: &'static str) -> Literal {
|
||||
Literal(token::Literal(token::Lit::Integer(Symbol::intern(&n.to_string())),
|
||||
Some(Symbol::intern(kind))))
|
||||
|
Loading…
Reference in New Issue
Block a user