about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-08-17 12:38:21 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-08-17 12:38:21 +1000
commit52d8397985f8bbdc68e9b08f4cc80d6de5e916f8 (patch)
tree206288e665c23e795b146c96b6ace374dc64ab91
parent6cd40d0e518b1bd2477932e411aaf6502807edea (diff)
downloadrust-52d8397985f8bbdc68e9b08f4cc80d6de5e916f8.tar.gz
rust-52d8397985f8bbdc68e9b08f4cc80d6de5e916f8.zip
Remove `AttributesExt::other_attrs`.
It's unused.
-rw-r--r--src/librustdoc/clean/types.rs6
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;