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.
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue