Skip to content

Commit a814963

Browse files
Rollup merge of #44717 - pnkfelix:debugflags-borrowckmir-implies-emitendregions, r=arielb1
Make `-Z borrowck-mir` imply that `EndRegion`'s should be emitted. Before this change, the `-Z borrowck-mir` flag is useless if you do not also pass `-Z emit-end-regions`. So, in the same spirit as f2892ad, make `-Z borrowck-mir` also emit `EndRegion` statements. (This will hopefully avoid some initial speed bumps for new-comers helping out with NLL.)
2 parents 39ab56c + 66a31c7 commit a814963

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc/session/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,8 @@ impl Session {
411411
}
412412
pub fn emit_end_regions(&self) -> bool {
413413
self.opts.debugging_opts.emit_end_regions ||
414-
(self.opts.debugging_opts.mir_emit_validate > 0)
414+
(self.opts.debugging_opts.mir_emit_validate > 0) ||
415+
self.opts.debugging_opts.borrowck_mir
415416
}
416417
pub fn lto(&self) -> bool {
417418
self.opts.cg.lto

0 commit comments

Comments
 (0)