1
Fork 0

Collect lang items from AST

This commit is contained in:
Michael Goulet 2023-11-23 04:45:42 +00:00
parent 4d1bd0db7f
commit ad00641b74
12 changed files with 325 additions and 178 deletions

View file

@ -453,6 +453,7 @@ pub fn lower_to_hir(tcx: TyCtxt<'_>, (): ()) -> hir::Crate<'_> {
tcx.ensure_with_value().output_filenames(());
tcx.ensure_with_value().early_lint_checks(());
tcx.ensure_with_value().debugger_visualizers(LOCAL_CRATE);
tcx.ensure_with_value().get_lang_items(());
let (mut resolver, krate) = tcx.resolver_for_lowering(()).steal();
let ast_index = index_crate(&resolver.node_id_to_def_id, &krate);