mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Remove AttributesExt::other_attrs.
It's unused.
This commit is contained in:
@@ -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 @@ fn inner_docs(&self) -> bool {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user