X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_lint%2Fsrc%2Fexpect.rs;h=e9eb14ea18800f0fe187d0a40d33ed6c425f6d15;hb=c9270272df5bd7254b6ce1c7b69d41c75e443406;hp=70c999811a52b297c9363298f75f389e8cff68b8;hpb=c06d57eb198004b3c6dd151594a1137b8875f6f1;p=rust.git diff --git a/compiler/rustc_lint/src/expect.rs b/compiler/rustc_lint/src/expect.rs index 70c999811a5..e9eb14ea188 100644 --- a/compiler/rustc_lint/src/expect.rs +++ b/compiler/rustc_lint/src/expect.rs @@ -11,7 +11,7 @@ pub(crate) fn provide(providers: &mut Providers) { } fn check_expectations(tcx: TyCtxt<'_>, tool_filter: Option) { - if !tcx.sess.features_untracked().enabled(sym::lint_reasons) { + if !tcx.features().enabled(sym::lint_reasons) { return; }