Skip to content

Commit 4be2842

Browse files
Add documentation on filter_doc_attr
1 parent 3bc899a commit 4be2842

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,6 +2363,8 @@ fn filter_doc_attr_ident(ident: Symbol, is_inline: bool) -> bool {
23632363
}
23642364
}
23652365

2366+
/// Remove attributes from `normal` that should not be inherited by `use` re-export.
2367+
/// Before calling this function, make sure `normal` is a `#[doc]` attribute.
23662368
fn filter_doc_attr(normal: &mut ast::NormalAttr, is_inline: bool) {
23672369
match normal.item.args {
23682370
ast::AttrArgs::Delimited(ref mut args) => {

0 commit comments

Comments
 (0)