We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2370b60 commit bcd9968Copy full SHA for bcd9968
src/librustc_mir/borrow_check/nll/type_check/mod.rs
@@ -1585,6 +1585,8 @@ impl MirPass for TypeckMir {
1585
let id = tcx.hir.as_local_node_id(def_id).unwrap();
1586
debug!("run_pass: {:?}", def_id);
1587
1588
+ // When NLL is enabled, the borrow checker runs the typeck
1589
+ // itself, so we don't need this MIR pass anymore.
1590
if tcx.sess.nll() {
1591
return;
1592
}
0 commit comments