diff options
author | Jonas Bushart <[email protected]> | 2021-02-22 13:33:42 +0000 |
---|---|---|
committer | Jonas Bushart <[email protected]> | 2021-02-22 13:48:56 +0000 |
commit | bd525c9d20fe1aeeb544fda9e6a9d3d7b5ee8d7f (patch) | |
tree | 5e271c69c5faababdcea02c3f5d29156d6bce69e /crates/proc_macro_srv/src | |
parent | 7775d92b47d43f655db5cf9408a3ecb2379de217 (diff) |
Add isize to the list of suffixed integers in typed_integer
The missing `isize` in `typed_integers` seems to just be an oversight.
Might fix: #7751
Diffstat (limited to 'crates/proc_macro_srv/src')
-rw-r--r-- | crates/proc_macro_srv/src/rustc_server.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/proc_macro_srv/src/rustc_server.rs b/crates/proc_macro_srv/src/rustc_server.rs index 25606da60..a8504f762 100644 --- a/crates/proc_macro_srv/src/rustc_server.rs +++ b/crates/proc_macro_srv/src/rustc_server.rs | |||
@@ -506,8 +506,7 @@ impl server::Literal for Rustc { | |||
506 | } | 506 | } |
507 | } | 507 | } |
508 | 508 | ||
509 | let text = | 509 | let text = def_suffixed_integer! {kind, u8, u16, u32, u64, u128, usize, i8, i16, i32, i64, i128, isize}; |
510 | def_suffixed_integer! {kind, u8, u16, u32, u64, u128, usize, i8, i16, i32, i64, i128}; | ||
511 | 510 | ||
512 | Literal { text: text.into(), id: tt::TokenId::unspecified() } | 511 | Literal { text: text.into(), id: tt::TokenId::unspecified() } |
513 | } | 512 | } |