You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rustdoc: The short description of #[doc(cfg(target_feature = ...))] shouldn't spell out "target feature" #49334
rustdoc's short description of #[doc(cfg(target_feature = ...))] is showing something like [x86-64 and target feature avx]. The words "target feature" is unnecessary since usually it is clear what avx means from context, i.e. [x86-64 and avx] should be clear enough.
The issue at hand is the fact that the "short text" is overridden when the condition is combined with others. The target features are supposed to only show "avx" when they're by themselves, as shown in the OP of #48759. The offending snippet:
Activity
QuietMisdreavus commentedon Mar 27, 2018
Notes to self:
The issue at hand is the fact that the "short text" is overridden when the condition is combined with others. The target features are supposed to only show "
avx" when they're by themselves, as shown in the OP of #48759. The offending snippet:rust/src/librustdoc/clean/cfg.rs
Lines 410 to 419 in 31ae4f9
The easiest way to fix this is to never print "target feature", even in the long form, but that text is still valuable there.
Rollup merge of rust-lang#50875 - QuietMisdreavus:short-features, r=G…