Access TyCtxt from early diagnostic decoration
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user