≈ the.bay.news

How do I link to my macro whose name clashes with a struct and which is always in scope along with the struct in a doc comment of the struct in the module containing both?

The Rust Programming Language Forum
How do I link to my macro whose name clashes with a struct and which is always in scope along with the struct in a doc comment of the struct in the module containing both?
I just released bevy_exclusive_components, exclusive.rs contains a macro and a struct, both have the same name: struct Exclusive { // -- SNIP -- } macro_rules! Exclusive { // -- SNIP -- } lib.rs reexports both mod exclusive; pub use exclusive::*; and the issue is that the doc comments of Exclusive try to link to Exclusive!, which fails, even if I write [`macro@Exclusive`]

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.