52
52
53
53
use crate :: astconv:: AstConv ;
54
54
use crate :: check:: { FnCtxt , Needs } ;
55
- use rustc:: infer:: type_variable:: { TypeVariableOrigin , TypeVariableOriginKind } ;
56
- use rustc:: infer:: { Coercion , InferOk , InferResult } ;
57
55
use rustc:: session:: parse:: feature_err;
58
- use rustc:: traits:: object_safety_violations;
59
- use rustc:: traits:: { self , ObligationCause , ObligationCauseCode } ;
60
56
use rustc:: ty:: adjustment:: {
61
57
Adjust , Adjustment , AllowTwoPhase , AutoBorrow , AutoBorrowMutability , PointerCast ,
62
58
} ;
@@ -68,6 +64,10 @@ use rustc::ty::{self, Ty, TypeAndMut};
68
64
use rustc_errors:: { struct_span_err, DiagnosticBuilder } ;
69
65
use rustc_hir as hir;
70
66
use rustc_hir:: def_id:: DefId ;
67
+ use rustc_infer:: infer:: type_variable:: { TypeVariableOrigin , TypeVariableOriginKind } ;
68
+ use rustc_infer:: infer:: { Coercion , InferOk , InferResult } ;
69
+ use rustc_infer:: traits:: object_safety_violations;
70
+ use rustc_infer:: traits:: { self , ObligationCause , ObligationCauseCode } ;
71
71
use rustc_span:: symbol:: sym;
72
72
use rustc_span:: { self , Span } ;
73
73
use rustc_target:: spec:: abi:: Abi ;
0 commit comments