about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2021-07-30 22:06:55 +0200
committerRémy Rakic <remy.rakic+github@gmail.com>2021-08-03 20:29:24 +0200
commit06437642a134a34c9a0a5d88ac2b2ca0dff0efa1 (patch)
tree7c0887004e260e12b5f7db5cdefefd40cf3dfce6
parent99cc35daeff45297ee306ec87c5f4bfe4f57adf4 (diff)
downloadrust-06437642a134a34c9a0a5d88ac2b2ca0dff0efa1.tar.gz
rust-06437642a134a34c9a0a5d88ac2b2ca0dff0efa1.zip
make the hybrid variant the default polonius algorithm
-rw-r--r--compiler/rustc_mir/src/borrow_check/nll.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir/src/borrow_check/nll.rs b/compiler/rustc_mir/src/borrow_check/nll.rs
index 95854b146a9..b36bedcfc11 100644
--- a/compiler/rustc_mir/src/borrow_check/nll.rs
+++ b/compiler/rustc_mir/src/borrow_check/nll.rs
@@ -282,7 +282,7 @@ pub(in crate::borrow_check) fn compute_regions<'cx, 'tcx>(
 
         if infcx.tcx.sess.opts.debugging_opts.polonius {
             let algorithm =
-                env::var("POLONIUS_ALGORITHM").unwrap_or_else(|_| String::from("Naive"));
+                env::var("POLONIUS_ALGORITHM").unwrap_or_else(|_| String::from("Hybrid"));
             let algorithm = Algorithm::from_str(&algorithm).unwrap();
             debug!("compute_regions: using polonius algorithm {:?}", algorithm);
             let _prof_timer = infcx.tcx.prof.generic_activity("polonius_analysis");