File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use crate::rustc::ty;
14
14
use crate :: rustc:: { declare_tool_lint, lint_array} ;
15
15
use crate :: rustc_errors:: Applicability ;
16
16
use crate :: syntax:: ast:: NodeId ;
17
- use crate :: syntax_pos:: symbol:: keywords:: SelfType ;
17
+ use crate :: syntax_pos:: symbol:: keywords:: SelfUpper ;
18
18
use crate :: utils:: { in_macro, span_lint_and_sugg} ;
19
19
use if_chain:: if_chain;
20
20
@@ -226,7 +226,7 @@ struct UseSelfVisitor<'a, 'tcx: 'a> {
226
226
227
227
impl < ' a , ' tcx > Visitor < ' tcx > for UseSelfVisitor < ' a , ' tcx > {
228
228
fn visit_path ( & mut self , path : & ' tcx Path , _id : HirId ) {
229
- if self . item_path . def == path. def && path. segments . last ( ) . expect ( SEGMENTS_MSG ) . ident . name != SelfType . name ( ) {
229
+ if self . item_path . def == path. def && path. segments . last ( ) . expect ( SEGMENTS_MSG ) . ident . name != SelfUpper . name ( ) {
230
230
span_use_self_lint ( self . cx , path) ;
231
231
}
232
232
Original file line number Diff line number Diff line change @@ -970,7 +970,7 @@ pub fn opt_def_id(def: Def) -> Option<DefId> {
970
970
971
971
pub fn is_self ( slf : & Arg ) -> bool {
972
972
if let PatKind :: Binding ( _, _, name, _) = slf. pat . node {
973
- name. name == keywords:: SelfValue . name ( )
973
+ name. name == keywords:: SelfLower . name ( )
974
974
} else {
975
975
false
976
976
}
You can’t perform that action at this time.
0 commit comments