diff options
author | David Tolnay <dtolnay@gmail.com> | 2019-08-10 13:35:39 -0700 |
---|---|---|
committer | David Tolnay <dtolnay@gmail.com> | 2019-08-10 13:35:39 -0700 |
commit | b9e03944016bca051a230220aba4d03420919757 (patch) | |
tree | 09a914fc474819c15d3a4f23986c49a9ba736c2f | |
parent | bd7b579371f0730e77071ad4cf6f9d480e5acb31 (diff) | |
download | platform_external_rust_crates_quote-b9e03944016bca051a230220aba4d03420919757.tar.gz platform_external_rust_crates_quote-b9e03944016bca051a230220aba4d03420919757.tar.bz2 platform_external_rust_crates_quote-b9e03944016bca051a230220aba4d03420919757.zip |
Clarify into-conversion to proc_macro::TokenStream
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -100,8 +100,10 @@ pub mod spanned; /// The whole point. /// /// Performs variable interpolation against the input and produces it as -/// [`TokenStream`]. For returning tokens to the compiler in a procedural macro, use -/// `into()` to build a `TokenStream`. +/// [`proc_macro2::TokenStream`]. +/// +/// Note: for returning tokens to the compiler in a procedural macro, use +/// `.into()` on the result to convert to [`proc_macro::TokenStream`]. /// /// [`TokenStream`]: https://docs.rs/proc-macro2/0.4/proc_macro2/struct.TokenStream.html /// |