diff options
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 6619288f9cb..03b7c939d48 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -2656,6 +2656,8 @@ fn filter_doc_attr_ident(ident: Symbol, is_inline: bool) -> bool { } } +/// Remove attributes from `normal` that should not be inherited by `use` re-export. +/// Before calling this function, make sure `normal` is a `#[doc]` attribute. fn filter_doc_attr(normal: &mut ast::NormalAttr, is_inline: bool) { match normal.item.args { ast::AttrArgs::Delimited(ref mut args) => { |
