@@ -3,14 +3,17 @@ pub mod suggestions;
33
44use super :: {
55 FulfillmentContext , FulfillmentError , FulfillmentErrorCode , MismatchedProjectionTypes ,
6- Obligation , ObligationCause , ObligationCauseCode , OnUnimplementedDirective ,
7- OnUnimplementedNote , OutputTypeParameterMismatch , Overflow , PredicateObligation ,
8- SelectionContext , SelectionError , TraitNotObjectSafe ,
6+ Obligation , ObligationCause , ObligationCauseCode , OutputTypeParameterMismatch , Overflow ,
7+ PredicateObligation , SelectionContext , SelectionError , TraitNotObjectSafe ,
98} ;
10-
119use crate :: infer:: error_reporting:: { TyCategory , TypeAnnotationNeeded as ErrorCode } ;
1210use crate :: infer:: type_variable:: { TypeVariableOrigin , TypeVariableOriginKind } ;
1311use crate :: infer:: { self , InferCtxt , TyCtxtInferExt } ;
12+ use crate :: traits:: query:: evaluate_obligation:: InferCtxtExt as _;
13+ use crate :: traits:: query:: normalize:: AtExt as _;
14+ use crate :: traits:: specialize:: to_pretty_impl_header;
15+ use on_unimplemented:: OnUnimplementedNote ;
16+ use on_unimplemented:: TypeErrCtxtExt as _;
1417use rustc_data_structures:: fx:: FxHashMap ;
1518use rustc_errors:: {
1619 pluralize, struct_span_err, Applicability , Diagnostic , DiagnosticBuilder , ErrorGuaranteed ,
@@ -40,11 +43,6 @@ use rustc_span::{ExpnKind, Span, DUMMY_SP};
4043use std:: fmt;
4144use std:: iter;
4245use std:: ops:: ControlFlow ;
43-
44- use crate :: traits:: query:: evaluate_obligation:: InferCtxtExt as _;
45- use crate :: traits:: query:: normalize:: AtExt as _;
46- use crate :: traits:: specialize:: to_pretty_impl_header;
47- use on_unimplemented:: TypeErrCtxtExt as _;
4846use suggestions:: TypeErrCtxtExt as _;
4947
5048pub use rustc_infer:: traits:: error_reporting:: * ;
0 commit comments