]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_lint/src/expect.rs
Auto merge of #107543 - ehuss:protocol-sparse, r=jyn514
[rust.git] / compiler / rustc_lint / src / expect.rs
index 70c999811a52b297c9363298f75f389e8cff68b8..e9eb14ea18800f0fe187d0a40d33ed6c425f6d15 100644 (file)
@@ -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;
     }