about summary refs log tree commit diff
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
commitefb631a09ccfa9b054ec81ec445436c7e1af9be0 (patch)
tree11dc005487eb6f00fe965f5671607bf23722f206
parentac95db69fd8648b858140078c0ac3e5b6a879cac (diff)
parent0c48b5a223a0cb8ef431eda4e57a172f678ec12d (diff)
downloadrust-efb631a09ccfa9b054ec81ec445436c7e1af9be0.tar.gz
rust-efb631a09ccfa9b054ec81ec445436c7e1af9be0.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
-rw-r--r--clippy_lints/src/attrs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/attrs.rs b/clippy_lints/src/attrs.rs
index 0710ac0bb0a..751c262673b 100644
--- a/clippy_lints/src/attrs.rs
+++ b/clippy_lints/src/attrs.rs
@@ -472,7 +472,7 @@ fn check_clippy_lint_names(cx: &LateContext<'_>, name: Symbol, items: &[NestedMe
 
 fn check_lint_reason(cx: &LateContext<'_>, name: Symbol, items: &[NestedMetaItem], attr: &'_ Attribute) {
     // Check for the feature
-    if !cx.tcx.sess.features_untracked().lint_reasons {
+    if !cx.tcx.features().lint_reasons {
         return;
     }