resolve: Preserve reexport chains in ModChildren

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
This commit is contained in:
Vadim Petrochenkov 2023-03-22 17:57:39 +04:00
parent c49c4fba11
commit d11b9165ee
7 changed files with 50 additions and 5 deletions

View file

@ -991,7 +991,7 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
_ => false,
};
ModChild { ident, res, vis, span, macro_rules }
ModChild { ident, res, vis, span, macro_rules, reexport_chain: Default::default() }
}
/// Iterates over all named children of the given module,