Skip to content

Commit

Permalink
Make -Z borrowck-mir imply that EndRegion's should be emitted.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Sep 20, 2017
1 parent 94a82ad commit 66a31c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc/session/mod.rs
Expand Up @@ -411,7 +411,8 @@ impl Session {
}
pub fn emit_end_regions(&self) -> bool {
self.opts.debugging_opts.emit_end_regions ||
(self.opts.debugging_opts.mir_emit_validate > 0)
(self.opts.debugging_opts.mir_emit_validate > 0) ||
self.opts.debugging_opts.borrowck_mir
}
pub fn lto(&self) -> bool {
self.opts.cg.lto
Expand Down

0 comments on commit 66a31c7

Please sign in to comment.