We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
AttributesExt::other_attrs
1 parent 6cd40d0 commit 52d8397Copy full SHA for 52d8397
src/librustdoc/clean/types.rs
@@ -820,8 +820,6 @@ pub(crate) trait AttributesExt {
820
821
fn inner_docs(&self) -> bool;
822
823
- fn other_attrs(&self) -> Vec<ast::Attribute>;
824
-
825
fn cfg(&self, tcx: TyCtxt<'_>, hidden_cfg: &FxHashSet<Cfg>) -> Option<Arc<Cfg>>;
826
}
827
@@ -848,10 +846,6 @@ impl AttributesExt for [ast::Attribute] {
848
846
self.iter().find(|a| a.doc_str().is_some()).map_or(true, |a| a.style == AttrStyle::Inner)
849
847
850
851
- fn other_attrs(&self) -> Vec<ast::Attribute> {
852
- self.iter().filter(|attr| attr.doc_str().is_none()).cloned().collect()
853
- }
854
855
fn cfg(&self, tcx: TyCtxt<'_>, hidden_cfg: &FxHashSet<Cfg>) -> Option<Arc<Cfg>> {
856
let sess = tcx.sess;
857
let doc_cfg_active = tcx.features().doc_cfg;
0 commit comments