Skip to content

Commit ddbabd5

Browse files
committed
Convert html links to intra-doc links
1 parent fa46189 commit ddbabd5

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

src/lib.rs

+2-14
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
//! This crate provides the [`quote!`] macro for turning Rust syntax tree data
1010
//! structures into tokens of source code.
1111
//!
12-
//! [`quote!`]: macro.quote.html
13-
//!
1412
//! Procedural macros in Rust receive a stream of tokens as input, execute
1513
//! arbitrary Rust code to determine how to manipulate those tokens, and produce
1614
//! a stream of tokens to hand back to the compiler to compile into the caller's
@@ -46,7 +44,6 @@
4644
//! implementing hygienic procedural macros.
4745
//!
4846
//! [a]: https://serde.rs/
49-
//! [`quote_spanned!`]: macro.quote_spanned.html
5047
//!
5148
//! ```
5249
//! # use quote::quote;
@@ -136,8 +133,6 @@ macro_rules! __quote {
136133
/// Note: for returning tokens to the compiler in a procedural macro, use
137134
/// `.into()` on the result to convert to [`proc_macro::TokenStream`].
138135
///
139-
/// [`TokenStream`]: https://docs.rs/proc-macro2/1.0/proc_macro2/struct.TokenStream.html
140-
///
141136
/// <br>
142137
///
143138
/// # Interpolation
@@ -149,7 +144,6 @@ macro_rules! __quote {
149144
/// Rust primitive types as well as most of the syntax tree types from the [Syn]
150145
/// crate.
151146
///
152-
/// [`ToTokens`]: trait.ToTokens.html
153147
/// [Syn]: https://github.com/dtolnay/syn
154148
///
155149
/// Repetition is done using `#(...)*` or `#(...),*` again similar to
@@ -171,12 +165,10 @@ macro_rules! __quote {
171165
/// `ToTokens` implementation. Tokens that originate within the `quote!`
172166
/// invocation are spanned with [`Span::call_site()`].
173167
///
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
175169
///
176170
/// A different span can be provided through the [`quote_spanned!`] macro.
177171
///
178-
/// [`quote_spanned!`]: macro.quote_spanned.html
179-
///
180172
/// <br>
181173
///
182174
/// # Return type
@@ -197,8 +189,6 @@ macro_rules! __quote {
197189
/// `quote!` from a procedural macro usually looks like `tokens.into()` or
198190
/// `proc_macro::TokenStream::from(tokens)`.
199191
///
200-
/// [`From`]: https://doc.rust-lang.org/std/convert/trait.From.html
201-
///
202192
/// <br>
203193
///
204194
/// # Examples
@@ -546,7 +536,7 @@ macro_rules! __quote_spanned {
546536
/// anything more than a few characters. There should be no space before the
547537
/// `=>` token.
548538
///
549-
/// [`Span`]: https://docs.rs/proc-macro2/1.0/proc_macro2/struct.Span.html
539+
/// [`Span`]: proc_macro2::Span
550540
///
551541
/// ```
552542
/// # use proc_macro2::Span;
@@ -589,8 +579,6 @@ macro_rules! __quote_spanned {
589579
/// particular Rust type implements the [`Sync`] trait so that references can be
590580
/// safely shared between threads.
591581
///
592-
/// [`Sync`]: https://doc.rust-lang.org/std/marker/trait.Sync.html
593-
///
594582
/// ```
595583
/// # use quote::{quote_spanned, TokenStreamExt, ToTokens};
596584
/// # use proc_macro2::{Span, TokenStream};

src/to_tokens.rs

-4
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,12 @@ use proc_macro2::{Group, Ident, Literal, Punct, Span, TokenStream, TokenTree};
66
use std::ffi::{CStr, CString};
77

88
/// Types that can be interpolated inside a `quote!` invocation.
9-
///
10-
/// [`quote!`]: macro.quote.html
119
pub trait ToTokens {
1210
/// Write `self` to the given `TokenStream`.
1311
///
1412
/// The token append methods provided by the [`TokenStreamExt`] extension
1513
/// trait may be useful for implementing `ToTokens`.
1614
///
17-
/// [`TokenStreamExt`]: trait.TokenStreamExt.html
18-
///
1915
/// # Example
2016
///
2117
/// Example implementation for a struct representing Rust paths like

0 commit comments

Comments
 (0)