Closed
Description
Part of #43466
intra-doc links is incapable of linking to proc macros
You can reproduce this both with and without the pub use
Reproduction
Cargo.toml
[package]
name = "repro"
version = "0.1.0"
edition = "2018"
[dependencies]
the-macro = { path = "the-macro" }
src/lib.rs
//! Please check out the procedural macro:
//!
//! - [Repro]
//! - [Repro][]
//! - [Repro](Repro)
//!
//! - [Repro!]
//! - [Repro!][]
//! - [Repro!](Repro!)
//!
//! - [macro Repro]
//! - [macro Repro][]
//! - [macro Repro](macro@Repro)
//!
//! - [macro Repro!]
//! - [macro Repro!][]
//! - [macro Repro!](macro@Repro!)
pub use the_macro::Repro;
the-macro/Cargo.toml
[package]
name = "the-macro"
version = "0.1.0"
edition = "2018"
[lib]
proc-macro = true
[dependencies]
the-macro/src/lib.rs
use proc_macro::TokenStream;
#[proc_macro_derive(Repro)]
pub fn repro_derive(input: TokenStream) -> TokenStream {
input
}
Originally posted by @shepmaster in #43466 (comment)