some conditional imports

This commit is contained in:
b-naber 2022-11-09 21:58:04 +01:00 committed by b-naber
parent e2bf960fe1
commit 46bd77aa80
5 changed files with 5 additions and 5 deletions

View File

@ -97,6 +97,7 @@
use place_ext::PlaceExt; use place_ext::PlaceExt;
use places_conflict::{places_conflict, PlaceConflictBias}; use places_conflict::{places_conflict, PlaceConflictBias};
use region_infer::RegionInferenceContext; use region_infer::RegionInferenceContext;
#[cfg(debug_assertions)]
use renumber::RegionCtxt; use renumber::RegionCtxt;
// FIXME(eddyb) perhaps move this somewhere more centrally. // FIXME(eddyb) perhaps move this somewhere more centrally.

View File

@ -257,11 +257,6 @@ pub(crate) fn compute_regions<'cx, 'tcx>(
borrow_set, borrow_set,
); );
if cfg!(debug_assertions) {
let var_to_origin = infcx.reg_var_to_origin.borrow();
debug!("var_to_origin: {:#?}", var_to_origin);
}
let mut regioncx = RegionInferenceContext::new( let mut regioncx = RegionInferenceContext::new(
infcx, infcx,
var_origins, var_origins,

View File

@ -8,6 +8,7 @@
use rustc_middle::mir::{Body, Location, Promoted}; use rustc_middle::mir::{Body, Location, Promoted};
use rustc_middle::ty::subst::SubstsRef; use rustc_middle::ty::subst::SubstsRef;
use rustc_middle::ty::{self, Ty, TyCtxt, TypeFoldable}; use rustc_middle::ty::{self, Ty, TyCtxt, TypeFoldable};
#[cfg(debug_assertions)]
use rustc_span::Symbol; use rustc_span::Symbol;
/// Replaces all free regions appearing in the MIR with fresh /// Replaces all free regions appearing in the MIR with fresh

View File

@ -9,6 +9,7 @@
use crate::constraints::OutlivesConstraint; use crate::constraints::OutlivesConstraint;
use crate::diagnostics::UniverseInfo; use crate::diagnostics::UniverseInfo;
#[cfg(debug_assertions)]
use crate::renumber::RegionCtxt; use crate::renumber::RegionCtxt;
use crate::type_check::{InstantiateOpaqueType, Locations, TypeChecker}; use crate::type_check::{InstantiateOpaqueType, Locations, TypeChecker};

View File

@ -26,10 +26,12 @@
self, DefIdTree, InlineConstSubsts, InlineConstSubstsParts, RegionVid, Ty, TyCtxt, self, DefIdTree, InlineConstSubsts, InlineConstSubstsParts, RegionVid, Ty, TyCtxt,
}; };
use rustc_middle::ty::{InternalSubsts, SubstsRef}; use rustc_middle::ty::{InternalSubsts, SubstsRef};
#[cfg(debug_assertions)]
use rustc_span::Symbol; use rustc_span::Symbol;
use std::iter; use std::iter;
use crate::nll::ToRegionVid; use crate::nll::ToRegionVid;
#[cfg(debug_assertions)]
use crate::renumber::RegionCtxt; use crate::renumber::RegionCtxt;
use crate::BorrowckInferCtxt; use crate::BorrowckInferCtxt;