commit | 4b72a38ad37fa4410f0157f6104387c260007b33 | [log] [tgz] |
---|---|---|
author | hcpl <hcpl.prog@gmail.com> | Wed Apr 04 14:50:24 2018 +0300 |
committer | hcpl <hcpl.prog@gmail.com> | Wed Apr 04 14:50:24 2018 +0300 |
tree | b11deb9ae086acb178978c52d3d872c0da3d36ff | |
parent | 75cbd6e5748745e929773a8b2f67e645bb7b3c99 [diff] [blame] |
Document `proc-macro` feature
diff --git a/src/buffer.rs b/src/buffer.rs index d92a7a6..13ef844 100644 --- a/src/buffer.rs +++ b/src/buffer.rs
@@ -220,6 +220,9 @@ /// Creates a `TokenBuffer` containing all the tokens from the input /// `TokenStream`. + /// + /// *This method is available if Syn is built with both the `"parsing"` and + /// `"proc-macro"` features.* #[cfg(feature = "proc-macro")] pub fn new(stream: pm::TokenStream) -> TokenBuffer { Self::new2(stream.into())