]> git.proxmox.com Git - rustc.git/blobdiff - src/librustc_mir/build/cfg.rs
New upstream version 1.26.0+dfsg1
[rustc.git] / src / librustc_mir / build / cfg.rs
index 932aad0bb1d84dcf68f12673d221547452081fac..1ed8289d4418469544d5cd7400a6b718584516c6 100644 (file)
@@ -50,7 +50,7 @@ impl<'tcx> CFG<'tcx> {
                                              block: BasicBlock,
                                              source_info: SourceInfo,
                                              region_scope: region::Scope) {
-        if tcx.sess.emit_end_regions() {
+        if tcx.emit_end_regions() {
             if let region::ScopeData::CallSite(_) = region_scope.data() {
                 // The CallSite scope (aka the root scope) is sort of weird, in that it is
                 // supposed to "separate" the "interior" and "exterior" of a closure. Being