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 Jun 28, 2023
1 parent 3bc899a commit 4be2842
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 @@ -2363,6 +2363,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 4be2842

Please sign in to comment.