Remove AttributesExt::other_attrs
.
It's unused.
This commit is contained in:
parent
6cd40d0e51
commit
52d8397985
@ -820,8 +820,6 @@ pub(crate) trait AttributesExt {
|
|||||||
|
|
||||||
fn inner_docs(&self) -> bool;
|
fn inner_docs(&self) -> bool;
|
||||||
|
|
||||||
fn other_attrs(&self) -> Vec<ast::Attribute>;
|
|
||||||
|
|
||||||
fn cfg(&self, tcx: TyCtxt<'_>, hidden_cfg: &FxHashSet<Cfg>) -> Option<Arc<Cfg>>;
|
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)
|
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>> {
|
fn cfg(&self, tcx: TyCtxt<'_>, hidden_cfg: &FxHashSet<Cfg>) -> Option<Arc<Cfg>> {
|
||||||
let sess = tcx.sess;
|
let sess = tcx.sess;
|
||||||
let doc_cfg_active = tcx.features().doc_cfg;
|
let doc_cfg_active = tcx.features().doc_cfg;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user