Remove #[macro_use] extern crate tracing
from rustc_infer
.
This commit is contained in:
parent
ed5161c5ac
commit
04a07dc314
27 changed files with 26 additions and 3 deletions
|
@ -13,6 +13,7 @@ use rustc_middle::ty::{
|
|||
self, BoundVar, GenericArg, InferConst, List, Ty, TyCtxt, TypeFlags, TypeVisitableExt,
|
||||
};
|
||||
use smallvec::SmallVec;
|
||||
use tracing::debug;
|
||||
|
||||
use crate::infer::canonical::{
|
||||
Canonical, CanonicalTyVarKind, CanonicalVarInfo, CanonicalVarKind, OriginalQueryValues,
|
||||
|
|
|
@ -17,6 +17,7 @@ use rustc_middle::mir::ConstraintCategory;
|
|||
use rustc_middle::ty::fold::TypeFoldable;
|
||||
use rustc_middle::ty::{self, BoundVar, GenericArg, GenericArgKind, Ty, TyCtxt};
|
||||
use rustc_middle::{bug, span_bug};
|
||||
use tracing::{debug, instrument};
|
||||
|
||||
use crate::infer::canonical::instantiate::{instantiate_value, CanonicalExt};
|
||||
use crate::infer::canonical::{
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
use rustc_data_structures::transitive_relation::TransitiveRelation;
|
||||
use rustc_middle::ty::{Region, TyCtxt};
|
||||
use tracing::debug;
|
||||
|
||||
/// Combines a `FreeRegionMap` and a `TyCtxt`.
|
||||
///
|
||||
|
|
|
@ -16,6 +16,7 @@ use rustc_middle::ty::{
|
|||
};
|
||||
use rustc_middle::{bug, span_bug};
|
||||
use rustc_span::Span;
|
||||
use tracing::{debug, instrument};
|
||||
|
||||
use super::outlives::test_type_match;
|
||||
use crate::infer::region_constraints::{
|
||||
|
|
|
@ -44,6 +44,7 @@ use rustc_middle::{bug, span_bug};
|
|||
use rustc_span::symbol::Symbol;
|
||||
use rustc_span::Span;
|
||||
use snapshot::undo_log::InferCtxtUndoLogs;
|
||||
use tracing::{debug, instrument};
|
||||
use type_variable::TypeVariableOrigin;
|
||||
pub use BoundRegionConversionTime::*;
|
||||
pub use RegionVariableOrigin::*;
|
||||
|
|
|
@ -11,6 +11,7 @@ use rustc_middle::ty::{
|
|||
TypeSuperVisitable, TypeVisitable, TypeVisitableExt, TypeVisitor,
|
||||
};
|
||||
use rustc_span::Span;
|
||||
use tracing::{debug, instrument};
|
||||
|
||||
use crate::errors::OpaqueHiddenTypeDiag;
|
||||
use crate::infer::{InferCtxt, InferOk};
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
use rustc_data_structures::undo_log::UndoLogs;
|
||||
use rustc_middle::bug;
|
||||
use rustc_middle::ty::{self, OpaqueHiddenType, OpaqueTypeKey, Ty};
|
||||
use tracing::instrument;
|
||||
|
||||
use super::{OpaqueTypeDecl, OpaqueTypeMap};
|
||||
use crate::infer::snapshot::undo_log::{InferCtxtUndoLogs, UndoLog};
|
||||
|
|
|
@ -2,6 +2,7 @@ use rustc_data_structures::fx::FxIndexSet;
|
|||
use rustc_data_structures::transitive_relation::TransitiveRelationBuilder;
|
||||
use rustc_middle::bug;
|
||||
use rustc_middle::ty::{self, Region};
|
||||
use tracing::{debug, instrument};
|
||||
|
||||
use super::explicit_outlives_bounds;
|
||||
use crate::infer::free_regions::FreeRegionMap;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
use rustc_middle::traits::query::{NoSolution, OutlivesBound};
|
||||
use rustc_middle::ty;
|
||||
use tracing::instrument;
|
||||
|
||||
use self::env::OutlivesEnvironment;
|
||||
use super::region_constraints::RegionConstraintData;
|
||||
|
|
|
@ -70,6 +70,7 @@ use rustc_middle::ty::{
|
|||
use rustc_span::DUMMY_SP;
|
||||
use rustc_type_ir::outlives::{push_outlives_components, Component};
|
||||
use smallvec::smallvec;
|
||||
use tracing::{debug, instrument};
|
||||
|
||||
use super::env::OutlivesEnvironment;
|
||||
use crate::infer::outlives::env::RegionBoundPairs;
|
||||
|
|
|
@ -3,6 +3,7 @@ use std::collections::hash_map::Entry;
|
|||
use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_middle::ty::error::TypeError;
|
||||
use rustc_middle::ty::{self, Ty, TyCtxt, TypeVisitableExt};
|
||||
use tracing::instrument;
|
||||
|
||||
use crate::infer::region_constraints::VerifyIfEq;
|
||||
use crate::infer::relate::{self as relate, Relate, RelateResult, TypeRelation};
|
||||
|
|
|
@ -3,6 +3,7 @@ use std::assert_matches::assert_matches;
|
|||
use rustc_middle::ty::{self, OutlivesPredicate, Ty, TyCtxt};
|
||||
use rustc_type_ir::outlives::{compute_alias_components_recursive, Component};
|
||||
use smallvec::smallvec;
|
||||
use tracing::{debug, instrument, trace};
|
||||
|
||||
use crate::infer::outlives::env::RegionBoundPairs;
|
||||
use crate::infer::region_constraints::VerifyIfEq;
|
||||
|
|
|
@ -4,6 +4,7 @@ use rustc_data_structures::graph::vec_graph::VecGraph;
|
|||
use rustc_index::Idx;
|
||||
use rustc_middle::span_bug;
|
||||
use rustc_middle::ty::error::TypeError;
|
||||
use tracing::{debug, instrument};
|
||||
|
||||
use super::*;
|
||||
use crate::infer::relate::RelateResult;
|
||||
|
|
|
@ -13,6 +13,7 @@ use rustc_middle::infer::unify_key::{RegionVariableValue, RegionVidKey};
|
|||
use rustc_middle::ty::{self, ReBound, ReStatic, ReVar, Region, RegionVid, Ty, TyCtxt};
|
||||
use rustc_middle::{bug, span_bug};
|
||||
use rustc_span::Span;
|
||||
use tracing::{debug, instrument};
|
||||
|
||||
use self::CombineMapType::*;
|
||||
use self::UndoLog::*;
|
||||
|
|
|
@ -24,6 +24,7 @@ use rustc_middle::traits::solve::Goal;
|
|||
use rustc_middle::ty::error::{ExpectedFound, TypeError};
|
||||
use rustc_middle::ty::{self, InferConst, IntType, Ty, TyCtxt, TypeVisitableExt, UintType, Upcast};
|
||||
pub use rustc_next_trait_solver::relate::combine::*;
|
||||
use tracing::debug;
|
||||
|
||||
use super::glb::Glb;
|
||||
use super::lub::Lub;
|
||||
|
|
|
@ -11,6 +11,7 @@ use rustc_middle::ty::{
|
|||
self, AliasRelationDirection, InferConst, Term, Ty, TyCtxt, TypeVisitable, TypeVisitableExt,
|
||||
};
|
||||
use rustc_span::Span;
|
||||
use tracing::{debug, instrument, warn};
|
||||
|
||||
use super::{
|
||||
PredicateEmittingRelation, Relate, RelateResult, StructurallyRelateAliases, TypeRelation,
|
||||
|
|
|
@ -4,6 +4,7 @@ use rustc_middle::traits::solve::Goal;
|
|||
use rustc_middle::ty::relate::{Relate, RelateResult, TypeRelation};
|
||||
use rustc_middle::ty::{self, Ty, TyCtxt, TypeVisitableExt};
|
||||
use rustc_span::Span;
|
||||
use tracing::{debug, instrument};
|
||||
|
||||
use super::combine::{CombineFields, PredicateEmittingRelation};
|
||||
use super::lattice::{self, LatticeDir};
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
use rustc_middle::ty::fold::FnMutDelegate;
|
||||
use rustc_middle::ty::{self, Ty, TyCtxt, TypeFoldable};
|
||||
use tracing::{debug, instrument};
|
||||
|
||||
use super::RelateResult;
|
||||
use crate::infer::snapshot::CombinedSnapshot;
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
use rustc_middle::ty::relate::RelateResult;
|
||||
use rustc_middle::ty::{self, Ty, TyVar};
|
||||
use tracing::instrument;
|
||||
|
||||
use super::combine::PredicateEmittingRelation;
|
||||
use crate::infer::{DefineOpaqueTypes, InferCtxt};
|
||||
|
|
|
@ -4,6 +4,7 @@ use rustc_middle::traits::solve::Goal;
|
|||
use rustc_middle::ty::relate::{Relate, RelateResult, TypeRelation};
|
||||
use rustc_middle::ty::{self, Ty, TyCtxt, TypeVisitableExt};
|
||||
use rustc_span::Span;
|
||||
use tracing::{debug, instrument};
|
||||
|
||||
use super::combine::{CombineFields, PredicateEmittingRelation};
|
||||
use super::lattice::{self, LatticeDir};
|
||||
|
|
|
@ -4,6 +4,7 @@ use rustc_middle::ty::relate::{
|
|||
};
|
||||
use rustc_middle::ty::{self, Ty, TyCtxt, TyVar};
|
||||
use rustc_span::Span;
|
||||
use tracing::{debug, instrument};
|
||||
|
||||
use super::combine::CombineFields;
|
||||
use crate::infer::relate::{PredicateEmittingRelation, StructurallyRelateAliases};
|
||||
|
|
|
@ -4,6 +4,7 @@ use rustc_data_structures::{snapshot_vec as sv, unify as ut};
|
|||
use rustc_middle::infer::unify_key::{ConstVariableValue, ConstVidKey};
|
||||
use rustc_middle::ty::fold::{TypeFoldable, TypeFolder, TypeSuperFoldable};
|
||||
use rustc_middle::ty::{self, ConstVid, FloatVid, IntVid, RegionVid, Ty, TyCtxt, TyVid};
|
||||
use tracing::instrument;
|
||||
use ut::UnifyKey;
|
||||
|
||||
use crate::infer::type_variable::TypeVariableOrigin;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
use rustc_data_structures::undo_log::UndoLogs;
|
||||
use rustc_middle::ty;
|
||||
use tracing::{debug, instrument};
|
||||
|
||||
use super::region_constraints::RegionSnapshot;
|
||||
use super::InferCtxt;
|
||||
|
|
|
@ -4,6 +4,7 @@ use rustc_data_structures::undo_log::{Rollback, UndoLogs};
|
|||
use rustc_data_structures::{snapshot_vec as sv, unify as ut};
|
||||
use rustc_middle::infer::unify_key::{ConstVidKey, EffectVidKey, RegionVidKey};
|
||||
use rustc_middle::ty::{self, OpaqueHiddenType, OpaqueTypeKey};
|
||||
use tracing::debug;
|
||||
|
||||
use crate::infer::{region_constraints, type_variable, InferCtxtInner};
|
||||
use crate::traits;
|
||||
|
|
|
@ -9,6 +9,7 @@ use rustc_index::IndexVec;
|
|||
use rustc_middle::bug;
|
||||
use rustc_middle::ty::{self, Ty, TyVid};
|
||||
use rustc_span::Span;
|
||||
use tracing::debug;
|
||||
|
||||
use crate::infer::InferCtxtUndoLogs;
|
||||
|
||||
|
|
|
@ -31,9 +31,6 @@
|
|||
#![warn(unreachable_pub)]
|
||||
// tidy-alphabetical-end
|
||||
|
||||
#[macro_use]
|
||||
extern crate tracing;
|
||||
|
||||
mod errors;
|
||||
pub mod infer;
|
||||
pub mod traits;
|
||||
|
|
|
@ -4,6 +4,7 @@ use rustc_data_structures::snapshot_map::{self, SnapshotMapRef, SnapshotMapStora
|
|||
use rustc_data_structures::undo_log::Rollback;
|
||||
use rustc_middle::traits::EvaluationResult;
|
||||
use rustc_middle::ty;
|
||||
use tracing::{debug, info};
|
||||
|
||||
use super::PredicateObligation;
|
||||
use crate::infer::snapshot::undo_log::InferCtxtUndoLogs;
|
||||
|
|
Loading…
Add table
Reference in a new issue