From 83519a667dba0e13b74d9c3f57eb178e4ce10227 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 10 Dec 2023 11:14:24 -0800 Subject: [PATCH] Change precedence test's syn Fold name to match lbrustc MutVisitor's name --- tests/test_precedence.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_precedence.rs b/tests/test_precedence.rs index 7e358792ed..af17b60b20 100644 --- a/tests/test_precedence.rs +++ b/tests/test_precedence.rs @@ -364,7 +364,7 @@ fn syn_parenthesize(syn_expr: syn::Expr) -> syn::Expr { use syn::fold::{fold_expr, fold_generic_argument, Fold}; use syn::{token, BinOp, Expr, ExprParen, GenericArgument, MetaNameValue, Pat, Stmt, Type}; - struct ParenthesizeEveryExpr; + struct FullyParenthesize; fn parenthesize(expr: Expr) -> Expr { Expr::Paren(ExprParen { @@ -394,7 +394,7 @@ fn syn_parenthesize(syn_expr: syn::Expr) -> syn::Expr { } } - impl Fold for ParenthesizeEveryExpr { + impl Fold for FullyParenthesize { fn fold_expr(&mut self, expr: Expr) -> Expr { let needs_paren = needs_paren(&expr); let folded = fold_expr(self, expr); @@ -442,7 +442,7 @@ fn syn_parenthesize(syn_expr: syn::Expr) -> syn::Expr { } } - let mut folder = ParenthesizeEveryExpr; + let mut folder = FullyParenthesize; folder.fold_expr(syn_expr) }