about summary refs log tree commit diff
path: root/src/librustdoc/clean/mod.rs
diff options
context:
space:
mode:
authorbohan <bohan-zhang@foxmail.com>2024-02-07 15:43:19 +0800
committerbohan <bohan-zhang@foxmail.com>2024-02-07 15:43:32 +0800
commit0a50dba50bedd24377bd1066da3b4b7066df4d28 (patch)
treeaf86510ec54eed8c46a39fd81b0fa1dd71a39b48 /src/librustdoc/clean/mod.rs
parentd4f6f9ee6a3b24f2cb97b1a5b82963609b93aa33 (diff)
downloadrust-0a50dba50bedd24377bd1066da3b4b7066df4d28.tar.gz
rust-0a50dba50bedd24377bd1066da3b4b7066df4d28.zip
docs: also check the inline stmt during redundant link check
Diffstat (limited to 'src/librustdoc/clean/mod.rs')
-rw-r--r--src/librustdoc/clean/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs
index 3bac71dbc24..b8e0d75e7dc 100644
--- a/src/librustdoc/clean/mod.rs
+++ b/src/librustdoc/clean/mod.rs
@@ -82,7 +82,7 @@ pub(crate) fn clean_doc_module<'tcx>(doc: &DocModule<'tcx>, cx: &mut DocContext<
     // but there's already an item with the same namespace and same name. Rust gives
     // priority to the not-imported one, so we should, too.
     items.extend(doc.items.values().flat_map(|(item, renamed, import_id)| {
-        // First, lower everything other than imports.
+        // First, lower everything other than glob imports.
         if matches!(item.kind, hir::ItemKind::Use(_, hir::UseKind::Glob)) {
             return Vec::new();
         }