@@ -3,7 +3,7 @@ use crate::infer::type_variable::TypeVariableOriginKind;
33use crate :: infer:: InferCtxt ;
44use crate :: ty:: print:: Print ;
55use crate :: ty:: { self , DefIdTree , Infer , Ty , TyVar } ;
6- use errors :: { struct_span_err, Applicability , DiagnosticBuilder } ;
6+ use rustc_errors :: { struct_span_err, Applicability , DiagnosticBuilder } ;
77use rustc_hir as hir;
88use rustc_hir:: def:: { DefKind , Namespace } ;
99use rustc_hir:: intravisit:: { self , NestedVisitorMap , Visitor } ;
@@ -151,12 +151,12 @@ pub enum TypeAnnotationNeeded {
151151 E0284 ,
152152}
153153
154- impl Into < errors :: DiagnosticId > for TypeAnnotationNeeded {
155- fn into ( self ) -> errors :: DiagnosticId {
154+ impl Into < rustc_errors :: DiagnosticId > for TypeAnnotationNeeded {
155+ fn into ( self ) -> rustc_errors :: DiagnosticId {
156156 match self {
157- Self :: E0282 => errors :: error_code!( E0282 ) ,
158- Self :: E0283 => errors :: error_code!( E0283 ) ,
159- Self :: E0284 => errors :: error_code!( E0284 ) ,
157+ Self :: E0282 => rustc_errors :: error_code!( E0282 ) ,
158+ Self :: E0283 => rustc_errors :: error_code!( E0283 ) ,
159+ Self :: E0284 => rustc_errors :: error_code!( E0284 ) ,
160160 }
161161 }
162162}
0 commit comments