Skip to content

Commit fa51c0f

Browse files
Use a qualified path to make it more clear where list_contains_name function comes from
1 parent 58a34a4 commit fa51c0f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustdoc/clean/utils.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use crate::clean::{
77
};
88
use crate::core::DocContext;
99

10-
use rustc_attr::list_contains_name;
1110
use rustc_data_structures::fx::FxHashSet;
1211
use rustc_hir as hir;
1312
use rustc_hir::def::{DefKind, Res};
@@ -533,6 +532,6 @@ crate fn find_nearest_parent_module(tcx: TyCtxt<'_>, def_id: DefId) -> Option<De
533532
crate fn has_doc_flag(attrs: Attributes<'_>, flag: Symbol) -> bool {
534533
attrs.iter().any(|attr| {
535534
attr.has_name(sym::doc)
536-
&& attr.meta_item_list().map_or(false, |l| list_contains_name(&l, flag))
535+
&& attr.meta_item_list().map_or(false, |l| rustc_attr::list_contains_name(&l, flag))
537536
})
538537
}

0 commit comments

Comments
 (0)