about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/expect.rs
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-12-05 17:52:17 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-01-12 17:14:17 +0000
commitd36db0d2a0c4fa0adaf49b2e795670bfc235d390 (patch)
treef1cb3f9b0fcfbf133c74b9b7db0f19585a6840ba /compiler/rustc_lint/src/expect.rs
parentfbe2d5aad2912e718541443357784cea4b65a0b8 (diff)
downloadrust-d36db0d2a0c4fa0adaf49b2e795670bfc235d390.tar.gz
rust-d36db0d2a0c4fa0adaf49b2e795670bfc235d390.zip
Feed the `features_query` instead of grabbing it from the session lazily
Diffstat (limited to 'compiler/rustc_lint/src/expect.rs')
-rw-r--r--compiler/rustc_lint/src/expect.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/expect.rs b/compiler/rustc_lint/src/expect.rs
index cf8f31bcbd0..bf00ade5f0b 100644
--- a/compiler/rustc_lint/src/expect.rs
+++ b/compiler/rustc_lint/src/expect.rs
@@ -12,7 +12,7 @@ pub(crate) fn provide(providers: &mut Providers) {
 }
 
 fn check_expectations(tcx: TyCtxt<'_>, tool_filter: Option<Symbol>) {
-    if !tcx.sess.features_untracked().enabled(sym::lint_reasons) {
+    if !tcx.features().enabled(sym::lint_reasons) {
         return;
     }