File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 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;
1414use crate :: rustc:: { declare_tool_lint, lint_array} ;
1515use crate :: rustc_errors:: Applicability ;
1616use crate :: syntax:: ast:: NodeId ;
17- use crate :: syntax_pos:: symbol:: keywords:: SelfType ;
17+ use crate :: syntax_pos:: symbol:: keywords:: SelfUpper ;
1818use crate :: utils:: { in_macro, span_lint_and_sugg} ;
1919use if_chain:: if_chain;
2020
@@ -226,7 +226,7 @@ struct UseSelfVisitor<'a, 'tcx: 'a> {
226226
227227impl < ' a , ' tcx > Visitor < ' tcx > for UseSelfVisitor < ' a , ' tcx > {
228228 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 ( ) {
230230 span_use_self_lint ( self . cx , path) ;
231231 }
232232
Original file line number Diff line number Diff line change @@ -970,7 +970,7 @@ pub fn opt_def_id(def: Def) -> Option<DefId> {
970970
971971pub fn is_self ( slf : & Arg ) -> bool {
972972 if let PatKind :: Binding ( _, _, name, _) = slf. pat . node {
973- name. name == keywords:: SelfValue . name ( )
973+ name. name == keywords:: SelfLower . name ( )
974974 } else {
975975 false
976976 }
You can’t perform that action at this time.
0 commit comments