Remove glob imports for ObligationCauseCode
This commit is contained in:
parent
04c049498d
commit
4bde8a8f4b
24 changed files with 279 additions and 178 deletions
|
@ -13,9 +13,9 @@ use super::util;
|
|||
use super::util::closure_trait_ref_and_return_type;
|
||||
use super::wf;
|
||||
use super::{
|
||||
ImplDerivedObligation, ImplDerivedObligationCause, Normalized, Obligation, ObligationCause,
|
||||
ObligationCauseCode, Overflow, PolyTraitObligation, PredicateObligation, Selection,
|
||||
SelectionError, SelectionResult, TraitQueryMode,
|
||||
ImplDerivedObligationCause, Normalized, Obligation, ObligationCause, ObligationCauseCode,
|
||||
Overflow, PolyTraitObligation, PredicateObligation, Selection, SelectionError, SelectionResult,
|
||||
TraitQueryMode,
|
||||
};
|
||||
|
||||
use crate::infer::{InferCtxt, InferOk, TypeFreshener};
|
||||
|
@ -2771,12 +2771,14 @@ impl<'tcx> SelectionContext<'_, 'tcx> {
|
|||
cause.clone()
|
||||
} else {
|
||||
cause.clone().derived_cause(parent_trait_pred, |derived| {
|
||||
ImplDerivedObligation(Box::new(ImplDerivedObligationCause {
|
||||
derived,
|
||||
impl_or_alias_def_id: def_id,
|
||||
impl_def_predicate_index: Some(index),
|
||||
span,
|
||||
}))
|
||||
ObligationCauseCode::ImplDerivedObligation(Box::new(
|
||||
ImplDerivedObligationCause {
|
||||
derived,
|
||||
impl_or_alias_def_id: def_id,
|
||||
impl_def_predicate_index: Some(index),
|
||||
span,
|
||||
},
|
||||
))
|
||||
})
|
||||
};
|
||||
let clause = normalize_with_depth_to(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue