From 9835e2ae736235810b4ea1c162ca5e65c547e770 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 04:49:50 +0200 Subject: Merging upstream version 1.71.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/time-macros/src/quote.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vendor/time-macros/src/quote.rs') diff --git a/vendor/time-macros/src/quote.rs b/vendor/time-macros/src/quote.rs index 2fe86cc98..295abe115 100644 --- a/vendor/time-macros/src/quote.rs +++ b/vendor/time-macros/src/quote.rs @@ -78,6 +78,10 @@ macro_rules! quote_inner { }; // Literal + ($ts:ident 0 $($tail:tt)*) => { + $ts.extend([::proc_macro::TokenTree::from(::proc_macro::Literal::usize_unsuffixed(0))]); + quote_inner!($ts $($tail)*); + }; ($ts:ident $l:literal $($tail:tt)*) => { $ts.extend([::proc_macro::TokenTree::from(::proc_macro::Literal::string(&$l))]); quote_inner!($ts $($tail)*); -- cgit v1.2.3