Skip to content

Commit 9b6fa52

Browse files
authored
Merge pull request dtolnay#1399 from dtolnay/parsequote
Do not provide a parse_quote macro when printing feature is off
2 parents d36cc08 + 3a89d96 commit 9b6fa52

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ pub mod parse;
430430
pub mod parse_macro_input;
431431

432432
// Not public API except the `parse_quote!` macro.
433-
#[cfg(feature = "parsing")]
433+
#[cfg(all(feature = "parsing", feature = "printing"))]
434434
#[doc(hidden)]
435435
pub mod parse_quote;
436436

src/parse_quote.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424
/// }
2525
/// ```
2626
///
27-
/// *This macro is available only if Syn is built with the `"parsing"` feature,
28-
/// although interpolation of syntax tree nodes into the quoted tokens is only
29-
/// supported if Syn is built with the `"printing"` feature as well.*
27+
/// *This macro is available only if Syn is built with both the `"parsing"` and
28+
/// `"printing"` features.*
3029
///
3130
/// # Example
3231
///

0 commit comments

Comments
 (0)