From e67e3ba61fb21eead0c829aab3114cec0ab7f4dd Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 10 Dec 2023 11:13:29 -0800 Subject: [PATCH] Delete unneeded documentation of some precedence test functions --- tests/test_precedence.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/test_precedence.rs b/tests/test_precedence.rs index a962948239..7e358792ed 100644 --- a/tests/test_precedence.rs +++ b/tests/test_precedence.rs @@ -160,11 +160,6 @@ fn librustc_parse_and_rewrite(input: &str) -> Option> { parse::librustc_expr(input).and_then(librustc_parenthesize) } -/// Wrap every expression which is not already wrapped in parens with parens, to -/// reveal the precedence of the parsed expressions, and produce a stringified -/// form of the resulting expression. -/// -/// This method operates on librustc objects. fn librustc_parenthesize(mut librustc_expr: P) -> Option> { use rustc_ast::ast::{ AssocItem, AssocItemKind, Attribute, BinOpKind, Block, BorrowKind, Expr, ExprField, @@ -365,9 +360,6 @@ fn librustc_parenthesize(mut librustc_expr: P) -> Option } } -/// Wrap every expression which is not already wrapped in parens with parens, to -/// reveal the precedence of the parsed expressions, and produce a stringified -/// form of the resulting expression. 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};