mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
cleanup imports
This commit is contained in:
parent
f5438d658f
commit
f7472aa69e
@ -991,9 +991,3 @@ pub enum DefiningAnchor {
|
||||
/// Used to catch type mismatch errors when handling opaque types.
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
#[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 crate::{traits::IsNormalizesToHack, ty};
|
||||
use super::{
|
||||
CanonicalInput, Certainty, Goal, IsNormalizesToHack, NoSolution, QueryInput, QueryResult,
|
||||
};
|
||||
use crate::ty;
|
||||
use format::ProofTreeFormatter;
|
||||
use std::fmt::{Debug, Write};
|
||||
|
||||
@ -22,6 +24,7 @@ pub struct GoalEvaluation<'tcx> {
|
||||
|
||||
pub result: QueryResult<'tcx>,
|
||||
}
|
||||
|
||||
#[derive(Eq, PartialEq, Hash, HashStable)]
|
||||
pub enum GoalEvaluationKind<'tcx> {
|
||||
CacheHit(CacheHit),
|
||||
@ -65,6 +68,7 @@ pub struct GoalCandidate<'tcx> {
|
||||
pub candidates: Vec<GoalCandidate<'tcx>>,
|
||||
pub kind: CandidateKind<'tcx>,
|
||||
}
|
||||
|
||||
#[derive(Eq, PartialEq, Debug, Hash, HashStable)]
|
||||
pub enum CandidateKind<'tcx> {
|
||||
/// 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::traits::solve::inspect::{self, CandidateKind};
|
||||
use rustc_middle::traits::solve::{
|
||||
CanonicalInput, CanonicalResponse, Certainty, MaybeCause, PredefinedOpaques,
|
||||
PredefinedOpaquesData, QueryResult,
|
||||
CanonicalInput, CanonicalResponse, Certainty, IsNormalizesToHack, MaybeCause,
|
||||
PredefinedOpaques, PredefinedOpaquesData, QueryResult,
|
||||
};
|
||||
use rustc_middle::traits::{DefiningAnchor, IsNormalizesToHack};
|
||||
use rustc_middle::traits::DefiningAnchor;
|
||||
use rustc_middle::ty::{
|
||||
self, OpaqueTypeKey, Ty, TyCtxt, TypeFoldable, TypeSuperVisitable, TypeVisitable,
|
||||
TypeVisitableExt, TypeVisitor,
|
||||
|
@ -1,14 +1,9 @@
|
||||
use rustc_middle::{
|
||||
traits::{
|
||||
query::NoSolution,
|
||||
solve::{
|
||||
inspect::{self, CacheHit, CandidateKind},
|
||||
CanonicalInput, Certainty, Goal, QueryInput, QueryResult,
|
||||
},
|
||||
IsNormalizesToHack,
|
||||
},
|
||||
ty,
|
||||
use rustc_middle::traits::query::NoSolution;
|
||||
use rustc_middle::traits::solve::inspect::{self, CacheHit, CandidateKind};
|
||||
use rustc_middle::traits::solve::{
|
||||
CanonicalInput, Certainty, Goal, IsNormalizesToHack, QueryInput, QueryResult,
|
||||
};
|
||||
use rustc_middle::ty;
|
||||
|
||||
pub mod dump;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user