treat -Znll as implying -Zborrowck-mir
This commit is contained in:
parent
99aa313636
commit
d9fb792d7c
1 changed files with 5 additions and 1 deletions
|
|
@ -51,7 +51,11 @@ fn mir_borrowck<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId) {
|
|||
let src = MirSource::from_local_def_id(tcx, def_id);
|
||||
debug!("run query mir_borrowck: {}", tcx.node_path_str(src.item_id()));
|
||||
|
||||
if !tcx.has_attr(def_id, "rustc_mir_borrowck") && !tcx.sess.opts.debugging_opts.borrowck_mir {
|
||||
if {
|
||||
!tcx.has_attr(def_id, "rustc_mir_borrowck") &&
|
||||
!tcx.sess.opts.debugging_opts.borrowck_mir &&
|
||||
!tcx.sess.opts.debugging_opts.nll
|
||||
} {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue