@@ -3,14 +3,17 @@ pub mod suggestions;
3
3
4
4
use super :: {
5
5
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 ,
9
8
} ;
10
-
11
9
use crate :: infer:: error_reporting:: { TyCategory , TypeAnnotationNeeded as ErrorCode } ;
12
10
use crate :: infer:: type_variable:: { TypeVariableOrigin , TypeVariableOriginKind } ;
13
11
use 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 _;
14
17
use rustc_data_structures:: fx:: FxHashMap ;
15
18
use rustc_errors:: {
16
19
pluralize, struct_span_err, Applicability , Diagnostic , DiagnosticBuilder , ErrorGuaranteed ,
@@ -40,11 +43,6 @@ use rustc_span::{ExpnKind, Span, DUMMY_SP};
40
43
use std:: fmt;
41
44
use std:: iter;
42
45
use 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 _;
48
46
use suggestions:: TypeErrCtxtExt as _;
49
47
50
48
pub use rustc_infer:: traits:: error_reporting:: * ;
0 commit comments