diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2023-03-22 17:57:39 +0400 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2023-04-08 13:29:15 +0300 |
| commit | d11b9165ee594fc6dd30b40e96bd7b32c04d2d3c (patch) | |
| tree | 9beaa838c939aa96ce142164ca9d30e02e847a91 /src | |
| parent | c49c4fba1168d8a776ef5207ec28000112191ae2 (diff) | |
| download | rust-d11b9165ee594fc6dd30b40e96bd7b32c04d2d3c.tar.gz rust-d11b9165ee594fc6dd30b40e96bd7b32c04d2d3c.zip | |
resolve: Preserve reexport chains in `ModChild`ren
This may be potentially useful for - avoiding uses of `hir::ItemKind::Use` - preserving documentation comments on all reexports - preserving and checking stability/deprecation info on reexports - all kinds of diagnostics
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/clean/inline.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/inline.rs b/src/librustdoc/clean/inline.rs index 768f8bb7bc8..87f9483388f 100644 --- a/src/librustdoc/clean/inline.rs +++ b/src/librustdoc/clean/inline.rs @@ -558,7 +558,7 @@ fn build_module_items( // If we're re-exporting a re-export it may actually re-export something in // two namespaces, so the target may be listed twice. Make sure we only // visit each node at most once. - for &item in cx.tcx.module_children(did).iter() { + for item in cx.tcx.module_children(did).iter() { if item.vis.is_public() { let res = item.res.expect_non_local(); if let Some(def_id) = res.opt_def_id() |
