From aa6c436b3bf1f5c1a31c47fa05fd7c6698dc04fe Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 14 Mar 2023 15:13:12 -0700 Subject: [PATCH] Do not provide a parse_quote macro when printing feature is off --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index ccd36d0942..ea527ec75c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -430,7 +430,7 @@ pub mod parse; pub mod parse_macro_input; // Not public API except the `parse_quote!` macro. -#[cfg(feature = "parsing")] +#[cfg(all(feature = "parsing", feature = "printing"))] #[doc(hidden)] pub mod parse_quote;