@@ -959,7 +959,7 @@ fn report<'tcx>(
959959 // expr_str (the suggestion) is never shown if is_final_ufcs is true, since it's
960960 // `expr.kind == ExprKind::Call`. Therefore, this is, afaik, always unnecessary.
961961 /*
962- expr_str = if !expr_is_macro_call && is_final_ufcs && expr.precedence().order() < PREC_PREFIX {
962+ expr_str = if !expr_is_macro_call && is_final_ufcs && expr.precedence() < PREC_PREFIX {
963963 Cow::Owned(format!("({expr_str})"))
964964 } else {
965965 expr_str
@@ -999,7 +999,7 @@ fn report<'tcx>(
999999 Node :: Expr ( e) => match e. kind {
10001000 ExprKind :: Call ( callee, _) if callee. hir_id != data. first_expr . hir_id => ( 0 , false ) ,
10011001 ExprKind :: Call ( ..) => ( PREC_UNAMBIGUOUS , matches ! ( expr. kind, ExprKind :: Field ( ..) ) ) ,
1002- _ => ( e. precedence ( ) . order ( ) , false ) ,
1002+ _ => ( e. precedence ( ) , false ) ,
10031003 } ,
10041004 _ => ( 0 , false ) ,
10051005 } ;
@@ -1012,7 +1012,7 @@ fn report<'tcx>(
10121012 ) ;
10131013
10141014 let sugg = if !snip_is_macro
1015- && ( calls_field || expr. precedence ( ) . order ( ) < precedence)
1015+ && ( calls_field || expr. precedence ( ) < precedence)
10161016 && !has_enclosing_paren ( & snip)
10171017 && !is_in_tuple
10181018 {
@@ -1067,7 +1067,7 @@ fn report<'tcx>(
10671067 let ( snip, snip_is_macro) =
10681068 snippet_with_context ( cx, expr. span , data. first_expr . span . ctxt ( ) , ".." , & mut app) ;
10691069 let sugg =
1070- if !snip_is_macro && expr. precedence ( ) . order ( ) < precedence && !has_enclosing_paren ( & snip) {
1070+ if !snip_is_macro && expr. precedence ( ) < precedence && !has_enclosing_paren ( & snip) {
10711071 format ! ( "{prefix}({snip})" )
10721072 } else {
10731073 format ! ( "{prefix}{snip}" )
@@ -1154,7 +1154,7 @@ impl<'tcx> Dereferencing<'tcx> {
11541154 } ,
11551155 Some ( parent) if !parent. span . from_expansion ( ) => {
11561156 // Double reference might be needed at this point.
1157- if parent. precedence ( ) . order ( ) == PREC_UNAMBIGUOUS {
1157+ if parent. precedence ( ) == PREC_UNAMBIGUOUS {
11581158 // Parentheses would be needed here, don't lint.
11591159 * outer_pat = None ;
11601160 } else {
0 commit comments