@@ -3,7 +3,7 @@ use crate::infer::type_variable::TypeVariableOriginKind;
3
3
use crate :: infer:: InferCtxt ;
4
4
use crate :: ty:: print:: Print ;
5
5
use crate :: ty:: { self , DefIdTree , Infer , Ty , TyVar } ;
6
- use errors :: { struct_span_err, Applicability , DiagnosticBuilder } ;
6
+ use rustc_errors :: { struct_span_err, Applicability , DiagnosticBuilder } ;
7
7
use rustc_hir as hir;
8
8
use rustc_hir:: def:: { DefKind , Namespace } ;
9
9
use rustc_hir:: intravisit:: { self , NestedVisitorMap , Visitor } ;
@@ -151,12 +151,12 @@ pub enum TypeAnnotationNeeded {
151
151
E0284 ,
152
152
}
153
153
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 {
156
156
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 ) ,
160
160
}
161
161
}
162
162
}
0 commit comments