diff options
| author | Urgau <urgau@numericable.fr> | 2024-12-14 17:33:57 +0100 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2024-12-15 00:25:05 +0100 |
| commit | ab780fa48aa49463301620ec825da3376c0171a3 (patch) | |
| tree | c8d22b61536ab589154478ac2ebd625b29a85968 /compiler/rustc_interface/src/passes.rs | |
| parent | 0aeaa5eb22180fdf12a8489e63c4daa18da6f236 (diff) | |
| download | rust-ab780fa48aa49463301620ec825da3376c0171a3.tar.gz rust-ab780fa48aa49463301620ec825da3376c0171a3.zip | |
Access `TyCtxt` from early diagnostic decoration
Diffstat (limited to 'compiler/rustc_interface/src/passes.rs')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 430bc7db077..f8351a81bec 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -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, |
