about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/expect.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-01-13 13:57:21 +0000
committerbors <bors@rust-lang.org>2023-01-13 13:57:21 +0000
commit0b90256ada21c6a81b4c18f2c7a23151ab5fc232 (patch)
treeef066e14c07cd48aa364b2e7ab2853a40e2d162a /compiler/rustc_lint/src/expect.rs
parent5ca6f7d2c34953ee360ccf7d3c84c7853ea2df4b (diff)
parentd36db0d2a0c4fa0adaf49b2e795670bfc235d390 (diff)
downloadrust-0b90256ada21c6a81b4c18f2c7a23151ab5fc232.tar.gz
rust-0b90256ada21c6a81b4c18f2c7a23151ab5fc232.zip
Auto merge of #106776 - oli-obk:om_nom_nom_nom_nom, r=cjgillot
Feed a bunch of queries instead of tracking fields on TyCtxt

r? `@cjgillot`

pulled out of https://github.com/rust-lang/rust/pull/105462
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 70c999811a5..e9eb14ea188 100644
--- a/compiler/rustc_lint/src/expect.rs
+++ b/compiler/rustc_lint/src/expect.rs
@@ -11,7 +11,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;
     }