9
9
//! This crate provides the [`quote!`] macro for turning Rust syntax tree data
10
10
//! structures into tokens of source code.
11
11
//!
12
- //! [`quote!`]: macro.quote.html
13
- //!
14
12
//! Procedural macros in Rust receive a stream of tokens as input, execute
15
13
//! arbitrary Rust code to determine how to manipulate those tokens, and produce
16
14
//! a stream of tokens to hand back to the compiler to compile into the caller's
46
44
//! implementing hygienic procedural macros.
47
45
//!
48
46
//! [a]: https://serde.rs/
49
- //! [`quote_spanned!`]: macro.quote_spanned.html
50
47
//!
51
48
//! ```
52
49
//! # use quote::quote;
@@ -136,8 +133,6 @@ macro_rules! __quote {
136
133
/// Note: for returning tokens to the compiler in a procedural macro, use
137
134
/// `.into()` on the result to convert to [`proc_macro::TokenStream`].
138
135
///
139
- /// [`TokenStream`]: https://docs.rs/proc-macro2/1.0/proc_macro2/struct.TokenStream.html
140
- ///
141
136
/// <br>
142
137
///
143
138
/// # Interpolation
@@ -149,7 +144,6 @@ macro_rules! __quote {
149
144
/// Rust primitive types as well as most of the syntax tree types from the [Syn]
150
145
/// crate.
151
146
///
152
- /// [`ToTokens`]: trait.ToTokens.html
153
147
/// [Syn]: https://github.com/dtolnay/syn
154
148
///
155
149
/// Repetition is done using `#(...)*` or `#(...),*` again similar to
@@ -171,12 +165,10 @@ macro_rules! __quote {
171
165
/// `ToTokens` implementation. Tokens that originate within the `quote!`
172
166
/// invocation are spanned with [`Span::call_site()`].
173
167
///
174
- /// [`Span::call_site()`]: https://docs.rs/proc-macro2/1.0/ proc_macro2/struct. Span.html#method. call_site
168
+ /// [`Span::call_site()`]: proc_macro2:: Span:: call_site
175
169
///
176
170
/// A different span can be provided through the [`quote_spanned!`] macro.
177
171
///
178
- /// [`quote_spanned!`]: macro.quote_spanned.html
179
- ///
180
172
/// <br>
181
173
///
182
174
/// # Return type
@@ -197,8 +189,6 @@ macro_rules! __quote {
197
189
/// `quote!` from a procedural macro usually looks like `tokens.into()` or
198
190
/// `proc_macro::TokenStream::from(tokens)`.
199
191
///
200
- /// [`From`]: https://doc.rust-lang.org/std/convert/trait.From.html
201
- ///
202
192
/// <br>
203
193
///
204
194
/// # Examples
@@ -546,7 +536,7 @@ macro_rules! __quote_spanned {
546
536
/// anything more than a few characters. There should be no space before the
547
537
/// `=>` token.
548
538
///
549
- /// [`Span`]: https://docs.rs/proc-macro2/1.0/ proc_macro2/struct. Span.html
539
+ /// [`Span`]: proc_macro2:: Span
550
540
///
551
541
/// ```
552
542
/// # use proc_macro2::Span;
@@ -589,8 +579,6 @@ macro_rules! __quote_spanned {
589
579
/// particular Rust type implements the [`Sync`] trait so that references can be
590
580
/// safely shared between threads.
591
581
///
592
- /// [`Sync`]: https://doc.rust-lang.org/std/marker/trait.Sync.html
593
- ///
594
582
/// ```
595
583
/// # use quote::{quote_spanned, TokenStreamExt, ToTokens};
596
584
/// # use proc_macro2::{Span, TokenStream};
0 commit comments