Feed the features_query instead of grabbing it from the session lazily

This commit is contained in:
Oli Scherer 2022-12-05 17:52:17 +00:00
parent 5f8686ec3b
commit 0c48b5a223

View 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;
}