]> git.lizzy.rs Git - rust.git/commitdiff
Feed the `features_query` instead of grabbing it from the session lazily
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>
Mon, 5 Dec 2022 17:52:17 +0000 (17:52 +0000)
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>
Thu, 12 Jan 2023 17:14:17 +0000 (17:14 +0000)
clippy_lints/src/attrs.rs

index 0710ac0bb0a72468bb8144351560972dcf53a55a..751c262673b1ca04bec420a92bddbeea88ffdf10 100644 (file)
@@ -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;
     }