rust/compiler/rustc_middle/src
bors 7201301df6 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
2023-04-09 13:05:56 +00:00
..
dep_graph Hide warning. 2023-04-03 15:59:21 +00:00
hir Update ty::VariantDef to use IndexVec<FieldIdx, FieldDef> 2023-03-30 09:23:40 -07:00
infer Remove index from BrAnon 2023-04-06 23:01:40 -04:00
middle fix clippy::iter_kv_map 2023-04-01 23:44:16 +02:00
mir Auto merge of #110036 - jackh726:placeholder_boundvar, r=nnethercote 2023-04-07 14:26:24 +00:00
query rustc_middle: Remove Option from module_reexports query 2023-04-08 13:29:16 +03:00
thir Add Span to StmtKind::Let. 2023-04-03 15:59:21 +00:00
traits Tweak debug outputs to make debugging new solver easier 2023-04-05 03:18:29 +00:00
ty Auto merge of #109500 - petrochenkov:modchainld, r=oli-obk 2023-04-09 13:05:56 +00:00
util Add some docs to bug, span_bug and delay_span_bug 2022-12-30 16:47:56 +01:00
arena.rs resolve: Preserve reexport chains in ModChildren 2023-04-08 13:29:15 +03:00
error.rs fix(middle): emit error rather than delay bug when reaching limit 2023-04-03 11:08:14 +08:00
lib.rs Avoid the assertion in erase 2023-04-06 08:25:53 +02:00
lint.rs create helper function for rustc_lint_defs::Level and remove it's duplicated code r=ozkanonur 2023-01-10 10:56:17 +03:00
macros.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
metadata.rs resolve: Preserve reexport chains in ModChildren 2023-04-08 13:29:15 +03:00
tests.rs
thir.rs Add Span to StmtKind::Let. 2023-04-03 15:59:21 +00:00
values.rs rustc_middle: Remove trait DefIdTree 2023-03-02 23:46:44 +04:00