diff options
author | bors <bors@rust-lang.org> | 2023-04-09 13:05:56 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2023-04-09 13:05:56 +0000 |
commit | 7201301df6afe8b68c6a8f5d2abba67bbba435ea (patch) | |
tree | 2ef2b24cdda8c266e98cf4d06f9fc9ffcc3f12f3 /tests/rustdoc-js-std/parser-errors.js | |
parent | 56e0626836d92973cd12cb505179eef9795efc61 (diff) | |
parent | 9da9373bf0ebaf5fb2e4911d263a1950e2306157 (diff) | |
download | rust-7201301df6afe8b68c6a8f5d2abba67bbba435ea.tar.gz |
Auto merge of #109500 - petrochenkov:modchainld, r=oli-obk
resolve: Preserve reexport chains in `ModChild`ren
This may be potentially useful for
- avoiding uses of `hir::ItemKind::Use` (which usually lead to correctness issues)
- preserving documentation comments on all reexports, including those from other crates
- preserving and checking stability/deprecation info on reexports
- all kinds of diagnostics
The second commit then migrates some hacky logic from rustdoc to `module_reexports` to make it simpler and more correct.
Ideally rustdoc should use `module_reexports` immediately at the top level, so `hir::ItemKind::Use`s are never used.
The second commit also fixes issues with https://github.com/rust-lang/rust/pull/109330 and therefore
Fixes https://github.com/rust-lang/rust/issues/109631
Fixes https://github.com/rust-lang/rust/issues/109614
Fixes https://github.com/rust-lang/rust/issues/109424
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions