Skip to content

Commit

Permalink
Add documentation on filter_doc_attr
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Nov 3, 2023
1 parent 758cd8c commit be881f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustdoc/clean/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2650,6 +2650,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) => {
Expand Down

0 comments on commit be881f8

Please sign in to comment.