Skip to content

Commit

Permalink
Do not provide a parse_quote macro when printing feature is off
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 14, 2023
1 parent d36cc08 commit 3a89d96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -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;

Expand Down
5 changes: 2 additions & 3 deletions src/parse_quote.rs
Expand Up @@ -24,9 +24,8 @@
/// }
/// ```
///
/// *This macro is available only if Syn is built with the `"parsing"` feature,
/// although interpolation of syntax tree nodes into the quoted tokens is only
/// supported if Syn is built with the `"printing"` feature as well.*
/// *This macro is available only if Syn is built with both the `"parsing"` and
/// `"printing"` features.*
///
/// # Example
///
Expand Down

0 comments on commit 3a89d96

Please sign in to comment.