Allow multiple aliases in one doc(alias) attribute #81205
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-doc-alias
Area: `#[doc(alias)]`
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
It would be nice to be able to specify multiple aliases in one
#[doc(alias)]
attribute (as an array). This would be particularily useful for crates that export multiple derive macros with different sets of attributes. With#[doc(alias)]
, these can make the derive macro findable by any of its attributes names, e.g. serde could do sth. likebut needing one attribute / line for every attribute gets a bit unwieldy. This would be better:
The text was updated successfully, but these errors were encountered: