5252
5353use crate :: astconv:: AstConv ;
5454use crate :: check:: { FnCtxt , Needs } ;
55- use rustc:: infer:: type_variable:: { TypeVariableOrigin , TypeVariableOriginKind } ;
56- use rustc:: infer:: { Coercion , InferOk , InferResult } ;
5755use rustc:: session:: parse:: feature_err;
58- use rustc:: traits:: object_safety_violations;
59- use rustc:: traits:: { self , ObligationCause , ObligationCauseCode } ;
6056use rustc:: ty:: adjustment:: {
6157 Adjust , Adjustment , AllowTwoPhase , AutoBorrow , AutoBorrowMutability , PointerCast ,
6258} ;
@@ -68,6 +64,10 @@ use rustc::ty::{self, Ty, TypeAndMut};
6864use rustc_errors:: { struct_span_err, DiagnosticBuilder } ;
6965use rustc_hir as hir;
7066use 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 } ;
7171use rustc_span:: symbol:: sym;
7272use rustc_span:: { self , Span } ;
7373use rustc_target:: spec:: abi:: Abi ;
0 commit comments