cleanup imports
This commit is contained in:
parent
f5438d658f
commit
f7472aa69e
5 changed files with 20 additions and 21 deletions
|
@ -991,9 +991,3 @@ pub enum DefiningAnchor {
|
||||||
/// Used to catch type mismatch errors when handling opaque types.
|
/// Used to catch type mismatch errors when handling opaque types.
|
||||||
Error,
|
Error,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, HashStable)]
|
|
||||||
pub enum IsNormalizesToHack {
|
|
||||||
Yes,
|
|
||||||
No,
|
|
||||||
}
|
|
||||||
|
|
|
@ -228,3 +228,9 @@ impl<'tcx> TypeVisitable<TyCtxt<'tcx>> for PredefinedOpaques<'tcx> {
|
||||||
self.opaque_types.visit_with(visitor)
|
self.opaque_types.visit_with(visitor)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, HashStable)]
|
||||||
|
pub enum IsNormalizesToHack {
|
||||||
|
Yes,
|
||||||
|
No,
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
use super::{CanonicalInput, Certainty, Goal, NoSolution, QueryInput, QueryResult};
|
use super::{
|
||||||
use crate::{traits::IsNormalizesToHack, ty};
|
CanonicalInput, Certainty, Goal, IsNormalizesToHack, NoSolution, QueryInput, QueryResult,
|
||||||
|
};
|
||||||
|
use crate::ty;
|
||||||
use format::ProofTreeFormatter;
|
use format::ProofTreeFormatter;
|
||||||
use std::fmt::{Debug, Write};
|
use std::fmt::{Debug, Write};
|
||||||
|
|
||||||
|
@ -22,6 +24,7 @@ pub struct GoalEvaluation<'tcx> {
|
||||||
|
|
||||||
pub result: QueryResult<'tcx>,
|
pub result: QueryResult<'tcx>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Eq, PartialEq, Hash, HashStable)]
|
#[derive(Eq, PartialEq, Hash, HashStable)]
|
||||||
pub enum GoalEvaluationKind<'tcx> {
|
pub enum GoalEvaluationKind<'tcx> {
|
||||||
CacheHit(CacheHit),
|
CacheHit(CacheHit),
|
||||||
|
@ -65,6 +68,7 @@ pub struct GoalCandidate<'tcx> {
|
||||||
pub candidates: Vec<GoalCandidate<'tcx>>,
|
pub candidates: Vec<GoalCandidate<'tcx>>,
|
||||||
pub kind: CandidateKind<'tcx>,
|
pub kind: CandidateKind<'tcx>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Eq, PartialEq, Debug, Hash, HashStable)]
|
#[derive(Eq, PartialEq, Debug, Hash, HashStable)]
|
||||||
pub enum CandidateKind<'tcx> {
|
pub enum CandidateKind<'tcx> {
|
||||||
/// Probe entered when normalizing the self ty during candidate assembly
|
/// Probe entered when normalizing the self ty during candidate assembly
|
||||||
|
|
|
@ -11,10 +11,10 @@ use rustc_infer::traits::ObligationCause;
|
||||||
use rustc_middle::infer::unify_key::{ConstVariableOrigin, ConstVariableOriginKind};
|
use rustc_middle::infer::unify_key::{ConstVariableOrigin, ConstVariableOriginKind};
|
||||||
use rustc_middle::traits::solve::inspect::{self, CandidateKind};
|
use rustc_middle::traits::solve::inspect::{self, CandidateKind};
|
||||||
use rustc_middle::traits::solve::{
|
use rustc_middle::traits::solve::{
|
||||||
CanonicalInput, CanonicalResponse, Certainty, MaybeCause, PredefinedOpaques,
|
CanonicalInput, CanonicalResponse, Certainty, IsNormalizesToHack, MaybeCause,
|
||||||
PredefinedOpaquesData, QueryResult,
|
PredefinedOpaques, PredefinedOpaquesData, QueryResult,
|
||||||
};
|
};
|
||||||
use rustc_middle::traits::{DefiningAnchor, IsNormalizesToHack};
|
use rustc_middle::traits::DefiningAnchor;
|
||||||
use rustc_middle::ty::{
|
use rustc_middle::ty::{
|
||||||
self, OpaqueTypeKey, Ty, TyCtxt, TypeFoldable, TypeSuperVisitable, TypeVisitable,
|
self, OpaqueTypeKey, Ty, TyCtxt, TypeFoldable, TypeSuperVisitable, TypeVisitable,
|
||||||
TypeVisitableExt, TypeVisitor,
|
TypeVisitableExt, TypeVisitor,
|
||||||
|
|
|
@ -1,14 +1,9 @@
|
||||||
use rustc_middle::{
|
use rustc_middle::traits::query::NoSolution;
|
||||||
traits::{
|
use rustc_middle::traits::solve::inspect::{self, CacheHit, CandidateKind};
|
||||||
query::NoSolution,
|
use rustc_middle::traits::solve::{
|
||||||
solve::{
|
CanonicalInput, Certainty, Goal, IsNormalizesToHack, QueryInput, QueryResult,
|
||||||
inspect::{self, CacheHit, CandidateKind},
|
|
||||||
CanonicalInput, Certainty, Goal, QueryInput, QueryResult,
|
|
||||||
},
|
|
||||||
IsNormalizesToHack,
|
|
||||||
},
|
|
||||||
ty,
|
|
||||||
};
|
};
|
||||||
|
use rustc_middle::ty;
|
||||||
|
|
||||||
pub mod dump;
|
pub mod dump;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue