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 063deba commit 380e388Copy full SHA for 380e388
src/librustc_mir/borrow_check/nll/type_check/mod.rs
@@ -1585,6 +1585,10 @@ impl MirPass for TypeckMir {
1585
let id = tcx.hir.as_local_node_id(def_id).unwrap();
1586
debug!("run_pass: {:?}", def_id);
1587
1588
+ if tcx.sess.nll() {
1589
+ return;
1590
+ }
1591
+
1592
if tcx.sess.err_count() > 0 {
1593
// compiling a broken program can obviously result in a
1594
// broken MIR, so try not to report duplicate errors.
0 commit comments