@@ -550,20 +550,20 @@ impl LintPass for BoxPointers {
550550}
551551
552552declare_lint ! {
553- RAW_POINTER_DERIVING ,
553+ RAW_POINTER_DERIVE ,
554554 Warn ,
555555 "uses of #[derive] with raw pointers are rarely correct"
556556}
557557
558- struct RawPtrDerivingVisitor < ' a , ' tcx : ' a > {
558+ struct RawPtrDeriveVisitor < ' a , ' tcx : ' a > {
559559 cx : & ' a Context < ' a , ' tcx >
560560}
561561
562- impl < ' a , ' tcx , ' v > Visitor < ' v > for RawPtrDerivingVisitor < ' a , ' tcx > {
562+ impl < ' a , ' tcx , ' v > Visitor < ' v > for RawPtrDeriveVisitor < ' a , ' tcx > {
563563 fn visit_ty ( & mut self , ty : & ast:: Ty ) {
564564 static MSG : & ' static str = "use of `#[derive]` with a raw pointer" ;
565565 if let ast:: TyPtr ( ..) = ty. node {
566- self . cx . span_lint ( RAW_POINTER_DERIVING , ty. span , MSG ) ;
566+ self . cx . span_lint ( RAW_POINTER_DERIVE , ty. span , MSG ) ;
567567 }
568568 visit:: walk_ty ( self , ty) ;
569569 }
@@ -572,21 +572,21 @@ impl<'a, 'tcx, 'v> Visitor<'v> for RawPtrDerivingVisitor<'a, 'tcx> {
572572 fn visit_block ( & mut self , _: & ast:: Block ) { }
573573}
574574
575- pub struct RawPointerDeriving {
575+ pub struct RawPointerDerive {
576576 checked_raw_pointers : NodeSet ,
577577}
578578
579- impl RawPointerDeriving {
580- pub fn new ( ) -> RawPointerDeriving {
581- RawPointerDeriving {
579+ impl RawPointerDerive {
580+ pub fn new ( ) -> RawPointerDerive {
581+ RawPointerDerive {
582582 checked_raw_pointers : NodeSet :: new ( ) ,
583583 }
584584 }
585585}
586586
587- impl LintPass for RawPointerDeriving {
587+ impl LintPass for RawPointerDerive {
588588 fn get_lints ( & self ) -> LintArray {
589- lint_array ! ( RAW_POINTER_DERIVING )
589+ lint_array ! ( RAW_POINTER_DERIVE )
590590 }
591591
592592 fn check_item ( & mut self , cx : & Context , item : & ast:: Item ) {
@@ -611,7 +611,7 @@ impl LintPass for RawPointerDeriving {
611611 if !self . checked_raw_pointers . insert ( item. id ) { return }
612612 match item. node {
613613 ast:: ItemStruct ( ..) | ast:: ItemEnum ( ..) => {
614- let mut visitor = RawPtrDerivingVisitor { cx : cx } ;
614+ let mut visitor = RawPtrDeriveVisitor { cx : cx } ;
615615 visit:: walk_item ( & mut visitor, & * item) ;
616616 }
617617 _ => { }
0 commit comments