Skip to content

Commit d9fb792

Browse files
committed
treat -Znll as implying -Zborrowck-mir
1 parent 99aa313 commit d9fb792

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/librustc_mir/borrow_check.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ fn mir_borrowck<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId) {
5151
let src = MirSource::from_local_def_id(tcx, def_id);
5252
debug!("run query mir_borrowck: {}", tcx.node_path_str(src.item_id()));
5353

54-
if !tcx.has_attr(def_id, "rustc_mir_borrowck") && !tcx.sess.opts.debugging_opts.borrowck_mir {
54+
if {
55+
!tcx.has_attr(def_id, "rustc_mir_borrowck") &&
56+
!tcx.sess.opts.debugging_opts.borrowck_mir &&
57+
!tcx.sess.opts.debugging_opts.nll
58+
} {
5559
return;
5660
}
5761

0 commit comments

Comments
 (0)