Skip to content

Commit 4a19caf

Browse files
committed
Remove local testing env var
1 parent a584eeb commit 4a19caf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler/rustc_typeck/src/check/upvar.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ use rustc_middle::ty::{self, Ty, TyCtxt, UpvarSubsts};
4444
use rustc_span::sym;
4545
use rustc_span::{Span, Symbol};
4646

47-
use std::env;
48-
4947
/// Describe the relationship between the paths of two places
5048
/// eg:
5149
/// - foo is ancestor of foo.bar.baz
@@ -127,8 +125,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
127125
let local_def_id = closure_def_id.expect_local();
128126

129127
let mut capture_information = FxIndexMap::<Place<'tcx>, ty::CaptureInfo<'tcx>>::default();
130-
if self.tcx.features().capture_disjoint_fields || matches!(env::var("SG_NEW"), Ok(_)) {
131-
} else {
128+
if !self.tcx.features().capture_disjoint_fields {
132129
if let Some(upvars) = self.tcx.upvars_mentioned(closure_def_id) {
133130
for (&var_hir_id, _) in upvars.iter() {
134131
let place = self.place_for_root_variable(local_def_id, var_hir_id);

0 commit comments

Comments
 (0)