Do not depend on quote when only parsing
diff --git a/src/ident.rs b/src/ident.rs
index e61f801..bba6e1c 100644
--- a/src/ident.rs
+++ b/src/ident.rs
@@ -21,12 +21,10 @@
/// - A lifetime is not an identifier. Use `syn::Lifetime` instead.
///
/// An identifier constructed with `Ident::new` is permitted to be a Rust
-/// keyword, though parsing input with [`parse`], [`parse_str`] or
-/// [`parse_tokens`] rejects Rust keywords.
+/// keyword, though parsing one through its [`Synom`] implementation rejects
+/// Rust keywords.
///
-/// [`parse`]: fn.parse.html
-/// [`parse_str`]: fn.parse_str.html
-/// [`parse_tokens`]: fn.parse_tokens.html
+/// [`Synom`]: synom/trait.Synom.html
///
/// # Examples
///
diff --git a/src/lib.rs b/src/lib.rs
index 5382a36..5ba8c20 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -7,7 +7,7 @@
extern crate proc_macro;
extern crate unicode_xid;
-#[cfg(any(feature = "printing", feature = "parsing"))]
+#[cfg(feature = "printing")]
extern crate quote;
#[cfg(feature = "parsing")]
@@ -202,34 +202,6 @@
}
}
-/// Parse a `quote::Tokens` of Rust code into the chosen syn data type.
-///
-/// # Examples
-///
-/// ```rust
-/// extern crate syn;
-/// #
-/// # #[macro_use]
-/// # extern crate quote;
-/// #
-/// # type Result<T> = std::result::Result<T, Box<std::error::Error>>;
-///
-/// use syn::Expr;
-///
-/// fn run() -> Result<()> {
-/// let code = quote!(assert_eq!(u8::max_value(), 255));
-/// let expr = syn::parse_tokens::<Expr>(code)?;
-/// println!("{:#?}", expr);
-/// Ok(())
-/// }
-/// #
-/// # fn main() { run().unwrap() }
-/// ```
-#[cfg(feature = "parsing")]
-pub fn parse_tokens<T: Synom>(tokens: quote::Tokens) -> Result<T, ParseError> {
- _parse(tokens.into())
-}
-
/// Parse a string of Rust code into the chosen syn data type.
///
/// # Examples