rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
97.9k stars 12.68k forks source link

Paths in macro visibilities are not linkified #83000

Open camelid opened 3 years ago

camelid commented 3 years ago

It looks like we don't use links in macro visibilities:

#![feature(decl_macro)]

pub mod inner1 {
    pub mod inner2 {
        pub mod inner3 {
            pub(in crate::inner1) macro foo() {}
        }
    }
}

image

@jyn514 thinks this might be a bug.

_Originally posted by @camelid in https://github.com/rust-lang/rust/pull/82815#discussion_r588757825_

camelid commented 3 years ago

Note: I haven't tested macro_rules! (I think pub macro_rules! landed recently) nor proc macros.