Skip to content

Commit 0643764

Browse files
committed
make the hybrid variant the default polonius algorithm
1 parent 99cc35d commit 0643764

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_mir/src/borrow_check

1 file changed

+1
-1
lines changed

compiler/rustc_mir/src/borrow_check/nll.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ pub(in crate::borrow_check) fn compute_regions<'cx, 'tcx>(
282282

283283
if infcx.tcx.sess.opts.debugging_opts.polonius {
284284
let algorithm =
285-
env::var("POLONIUS_ALGORITHM").unwrap_or_else(|_| String::from("Naive"));
285+
env::var("POLONIUS_ALGORITHM").unwrap_or_else(|_| String::from("Hybrid"));
286286
let algorithm = Algorithm::from_str(&algorithm).unwrap();
287287
debug!("compute_regions: using polonius algorithm {:?}", algorithm);
288288
let _prof_timer = infcx.tcx.prof.generic_activity("polonius_analysis");

0 commit comments

Comments
 (0)