Access TyCtxt from early diagnostic decoration

This commit is contained in:
Urgau
2024-12-14 17:33:57 +01:00
parent 0aeaa5eb22
commit ab780fa48a
5 changed files with 62 additions and 49 deletions

View File

@@ -76,6 +76,7 @@ fn pre_expansion_lint<'a>(
|| {
rustc_lint::check_ast_node(
sess,
None,
features,
true,
lint_store,
@@ -310,6 +311,7 @@ fn early_lint_checks(tcx: TyCtxt<'_>, (): ()) {
let lint_store = unerased_lint_store(tcx.sess);
rustc_lint::check_ast_node(
sess,
Some(tcx),
tcx.features(),
false,
lint_store,