about summary refs log tree commit diff
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
commit0c48b5a223a0cb8ef431eda4e57a172f678ec12d (patch)
tree97a5411f08111c365c8a84d440fab6ab79dcd948
parent5f8686ec3b598ca33b64c6e1cd31f72214b49e96 (diff)
downloadrust-0c48b5a223a0cb8ef431eda4e57a172f678ec12d.tar.gz
rust-0c48b5a223a0cb8ef431eda4e57a172f678ec12d.zip
Feed the `features_query` instead of grabbing it from the session lazily
-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;
     }