diff options
| author | bohan <bohan-zhang@foxmail.com> | 2024-02-07 15:43:19 +0800 |
|---|---|---|
| committer | bohan <bohan-zhang@foxmail.com> | 2024-02-07 15:43:32 +0800 |
| commit | 0a50dba50bedd24377bd1066da3b4b7066df4d28 (patch) | |
| tree | af86510ec54eed8c46a39fd81b0fa1dd71a39b48 /src/librustdoc/clean/mod.rs | |
| parent | d4f6f9ee6a3b24f2cb97b1a5b82963609b93aa33 (diff) | |
| download | rust-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.rs | 2 |
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(); } |
