From 66a31c7dc167a60bd8719e3f7bf2ae89ac781cff Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Wed, 20 Sep 2017 15:25:44 +0200 Subject: [PATCH] Make `-Z borrowck-mir` imply that `EndRegion`'s should be emitted. --- src/librustc/session/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/librustc/session/mod.rs b/src/librustc/session/mod.rs index df5a2648e270c..bdff6535713d2 100644 --- a/src/librustc/session/mod.rs +++ b/src/librustc/session/mod.rs @@ -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