Do not run AST borrowck when -Zborrowck=mir
This commit is contained in:
parent
0e31e2fa9b
commit
25266c1840
6 changed files with 29 additions and 14 deletions
|
|
@ -1279,7 +1279,11 @@ where
|
|||
middle::liveness::check_crate(tcx)
|
||||
});
|
||||
|
||||
time(sess, "borrow checking", || borrowck::check_crate(tcx));
|
||||
time(sess, "borrow checking", || {
|
||||
if tcx.use_ast_borrowck() {
|
||||
borrowck::check_crate(tcx);
|
||||
}
|
||||
});
|
||||
|
||||
time(sess,
|
||||
"MIR borrow checking",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue