summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_borrowck/src/facts.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_borrowck/src/facts.rs')
-rw-r--r--compiler/rustc_borrowck/src/facts.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/facts.rs b/compiler/rustc_borrowck/src/facts.rs
index 9916ebca3..c54e70704 100644
--- a/compiler/rustc_borrowck/src/facts.rs
+++ b/compiler/rustc_borrowck/src/facts.rs
@@ -41,7 +41,8 @@ pub(crate) trait AllFactsExt {
impl AllFactsExt for AllFacts {
/// Return
fn enabled(tcx: TyCtxt<'_>) -> bool {
- tcx.sess.opts.unstable_opts.nll_facts || tcx.sess.opts.unstable_opts.polonius
+ tcx.sess.opts.unstable_opts.nll_facts
+ || tcx.sess.opts.unstable_opts.polonius.is_legacy_enabled()
}
fn write_to_dir(