Skip to content

Commit

Permalink
Update test suite to nightly-2024-11-18
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 18, 2024
1 parent fc133eb commit f46a6f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_precedence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ fn librustc_parenthesize(mut librustc_expr: P<ast::Expr>) -> P<ast::Expr> {
ExprKind, GenericArg, GenericBound, Local, LocalKind, Pat, PolyTraitRef, Stmt, StmtKind,
StructExpr, StructRest, TraitBoundModifiers, Ty,
};
use rustc_ast::mut_visit::{walk_flat_map_item, MutVisitor};
use rustc_ast::mut_visit::{walk_flat_map_assoc_item, MutVisitor};
use rustc_ast::visit::{AssocCtxt, BoundKind};
use rustc_data_structures::flat_map_in_place::FlatMapInPlace;
use rustc_span::DUMMY_SP;
Expand Down Expand Up @@ -349,7 +349,7 @@ fn librustc_parenthesize(mut librustc_expr: P<ast::Expr>) -> P<ast::Expr> {
fn flat_map_assoc_item(
&mut self,
item: P<AssocItem>,
_ctxt: AssocCtxt,
ctxt: AssocCtxt,
) -> SmallVec<[P<AssocItem>; 1]> {
match &item.kind {
AssocItemKind::Const(const_item)
Expand All @@ -358,7 +358,7 @@ fn librustc_parenthesize(mut librustc_expr: P<ast::Expr>) -> P<ast::Expr> {
{
SmallVec::from([item])
}
_ => walk_flat_map_item(self, item),
_ => walk_flat_map_assoc_item(self, item, ctxt),
}
}

Expand Down

0 comments on commit f46a6f3

Please sign in to comment.