From abc40040be3e10bb8228d627012c92c54d8f791f Mon Sep 17 00:00:00 2001 From: Aman Arora Date: Thu, 5 Nov 2020 15:36:27 -0500 Subject: [PATCH] Remove local testing env var --- compiler/rustc_typeck/src/check/upvar.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/compiler/rustc_typeck/src/check/upvar.rs b/compiler/rustc_typeck/src/check/upvar.rs index a01aa8531ca..2dff7d0fbdd 100644 --- a/compiler/rustc_typeck/src/check/upvar.rs +++ b/compiler/rustc_typeck/src/check/upvar.rs @@ -44,8 +44,6 @@ use rustc_span::sym; use rustc_span::{Span, Symbol}; -use std::env; - /// Describe the relationship between the paths of two places /// eg: /// - foo is ancestor of foo.bar.baz @@ -127,8 +125,7 @@ fn analyze_closure( let local_def_id = closure_def_id.expect_local(); let mut capture_information = FxIndexMap::, ty::CaptureInfo<'tcx>>::default(); - if self.tcx.features().capture_disjoint_fields || matches!(env::var("SG_NEW"), Ok(_)) { - } else { + if !self.tcx.features().capture_disjoint_fields { if let Some(upvars) = self.tcx.upvars_mentioned(closure_def_id) { for (&var_hir_id, _) in upvars.iter() { let place = self.place_for_root_variable(local_def_id, var_hir_id);