Skip to content

Commit 66a31c7

Browse files
committed
Make -Z borrowck-mir imply that EndRegion's should be emitted.
1 parent 94a82ad commit 66a31c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc/session/mod.rs

+2-1
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)