diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-08-17 12:38:21 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-08-17 12:38:21 +1000 |
| commit | 52d8397985f8bbdc68e9b08f4cc80d6de5e916f8 (patch) | |
| tree | 206288e665c23e795b146c96b6ace374dc64ab91 | |
| parent | 6cd40d0e518b1bd2477932e411aaf6502807edea (diff) | |
| download | rust-52d8397985f8bbdc68e9b08f4cc80d6de5e916f8.tar.gz rust-52d8397985f8bbdc68e9b08f4cc80d6de5e916f8.zip | |
Remove `AttributesExt::other_attrs`.
It's unused.
| -rw-r--r-- | src/librustdoc/clean/types.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs index 1a4786c9b06..2a38713d43b 100644 --- a/src/librustdoc/clean/types.rs +++ b/src/librustdoc/clean/types.rs @@ -820,8 +820,6 @@ pub(crate) trait AttributesExt { fn inner_docs(&self) -> bool; - fn other_attrs(&self) -> Vec<ast::Attribute>; - fn cfg(&self, tcx: TyCtxt<'_>, hidden_cfg: &FxHashSet<Cfg>) -> Option<Arc<Cfg>>; } @@ -848,10 +846,6 @@ impl AttributesExt for [ast::Attribute] { self.iter().find(|a| a.doc_str().is_some()).map_or(true, |a| a.style == AttrStyle::Inner) } - fn other_attrs(&self) -> Vec<ast::Attribute> { - self.iter().filter(|attr| attr.doc_str().is_none()).cloned().collect() - } - fn cfg(&self, tcx: TyCtxt<'_>, hidden_cfg: &FxHashSet<Cfg>) -> Option<Arc<Cfg>> { let sess = tcx.sess; let doc_cfg_active = tcx.features().doc_cfg; |
