Skip to content

Commit be881f8

Browse files
Add documentation on filter_doc_attr
1 parent 758cd8c commit be881f8

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
@@ -2650,6 +2650,8 @@ fn filter_doc_attr_ident(ident: Symbol, is_inline: bool) -> bool {
26502650
}
26512651
}
26522652

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

0 commit comments

Comments
 (0)