@@ -39,10 +39,10 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for ByteCount {
3939 fn check_expr ( & mut self , cx : & LateContext , expr : & Expr ) {
4040 if_chain ! {
4141 if let ExprMethodCall ( ref count, _, ref count_args) = expr. node;
42- if count. name == "count" ;
42+ if count. ident . name == "count" ;
4343 if count_args. len( ) == 1 ;
4444 if let ExprMethodCall ( ref filter, _, ref filter_args) = count_args[ 0 ] . node;
45- if filter. name == "filter" ;
45+ if filter. ident . name == "filter" ;
4646 if filter_args. len( ) == 2 ;
4747 if let ExprClosure ( _, _, body_id, _, _) = filter_args[ 1 ] . node;
4848 then {
@@ -68,7 +68,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for ByteCount {
6868 }
6969 let haystack = if let ExprMethodCall ( ref path, _, ref args) =
7070 filter_args[ 0 ] . node {
71- let p = path. name;
71+ let p = path. ident . name;
7272 if ( p == "iter" || p == "iter_mut" ) && args. len( ) == 1 {
7373 & args[ 0 ]
7474 } else {
@@ -104,7 +104,7 @@ fn get_path_name(expr: &Expr) -> Option<Name> {
104104 } else {
105105 None
106106 } ,
107- ExprPath ( ref qpath) => single_segment_path ( qpath) . map ( |ps| ps. name ) ,
107+ ExprPath ( ref qpath) => single_segment_path ( qpath) . map ( |ps| ps. ident . name ) ,
108108 _ => None ,
109109 }
110110}
0 commit comments