@@ -8,7 +8,7 @@ use rustc_span::def_id::DefId;
88use rustc_span:: { DUMMY_SP , Span , Symbol , sym} ;
99use rustc_target:: callconv:: { FnAbi , PassMode } ;
1010
11- use crate :: errors ;
11+ use crate :: diagnostics ;
1212
1313/// Are vector registers used?
1414enum UsesVectorRegisters {
@@ -71,7 +71,7 @@ fn do_check_simd_vector_abi<'tcx>(
7171 Some ( ( _, feature) ) => feature,
7272 None => {
7373 let ( span, _hir_id) = loc ( ) ;
74- tcx. dcx ( ) . emit_err ( errors :: AbiErrorUnsupportedVectorType {
74+ tcx. dcx ( ) . emit_err ( diagnostics :: AbiErrorUnsupportedVectorType {
7575 span,
7676 ty : arg_abi. layout . ty ,
7777 is_call,
@@ -81,7 +81,7 @@ fn do_check_simd_vector_abi<'tcx>(
8181 } ;
8282 if !feature. is_empty ( ) && !have_feature ( Symbol :: intern ( feature) ) {
8383 let ( span, _hir_id) = loc ( ) ;
84- tcx. dcx ( ) . emit_err ( errors :: AbiErrorDisabledVectorType {
84+ tcx. dcx ( ) . emit_err ( diagnostics :: AbiErrorDisabledVectorType {
8585 span,
8686 required_feature : feature,
8787 ty : arg_abi. layout . ty ,
@@ -98,7 +98,7 @@ fn do_check_simd_vector_abi<'tcx>(
9898 } ;
9999 if !required_feature. is_empty ( ) && !have_feature ( Symbol :: intern ( required_feature) ) {
100100 let ( span, _) = loc ( ) ;
101- tcx. dcx ( ) . emit_err ( errors :: AbiErrorDisabledVectorType {
101+ tcx. dcx ( ) . emit_err ( diagnostics :: AbiErrorDisabledVectorType {
102102 span,
103103 required_feature,
104104 ty : arg_abi. layout . ty ,
@@ -115,7 +115,7 @@ fn do_check_simd_vector_abi<'tcx>(
115115 // The `vectorcall` ABI is special in that it requires SSE2 no matter which types are being passed.
116116 if abi. conv == CanonAbi :: X86 ( X86Call :: Vectorcall ) && !have_feature ( sym:: sse2) {
117117 let ( span, _hir_id) = loc ( ) ;
118- tcx. dcx ( ) . emit_err ( errors :: AbiRequiredTargetFeature {
118+ tcx. dcx ( ) . emit_err ( diagnostics :: AbiRequiredTargetFeature {
119119 span,
120120 required_feature : "sse2" ,
121121 abi : "vectorcall" ,
@@ -142,7 +142,7 @@ fn do_check_unsized_params<'tcx>(
142142 for arg_abi in fn_abi. args . iter ( ) {
143143 if !arg_abi. layout . layout . is_sized ( ) {
144144 let ( span, _hir_id) = loc ( ) ;
145- tcx. dcx ( ) . emit_err ( errors :: AbiErrorUnsupportedUnsizedParameter {
145+ tcx. dcx ( ) . emit_err ( diagnostics :: AbiErrorUnsupportedUnsizedParameter {
146146 span,
147147 ty : arg_abi. layout . ty ,
148148 is_call,
0 commit comments