Skip to content

Commit f46a6f3

Browse files
committed
Update test suite to nightly-2024-11-18
1 parent fc133eb commit f46a6f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_precedence.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ fn librustc_parenthesize(mut librustc_expr: P<ast::Expr>) -> P<ast::Expr> {
205205
ExprKind, GenericArg, GenericBound, Local, LocalKind, Pat, PolyTraitRef, Stmt, StmtKind,
206206
StructExpr, StructRest, TraitBoundModifiers, Ty,
207207
};
208-
use rustc_ast::mut_visit::{walk_flat_map_item, MutVisitor};
208+
use rustc_ast::mut_visit::{walk_flat_map_assoc_item, MutVisitor};
209209
use rustc_ast::visit::{AssocCtxt, BoundKind};
210210
use rustc_data_structures::flat_map_in_place::FlatMapInPlace;
211211
use rustc_span::DUMMY_SP;
@@ -349,7 +349,7 @@ fn librustc_parenthesize(mut librustc_expr: P<ast::Expr>) -> P<ast::Expr> {
349349
fn flat_map_assoc_item(
350350
&mut self,
351351
item: P<AssocItem>,
352-
_ctxt: AssocCtxt,
352+
ctxt: AssocCtxt,
353353
) -> SmallVec<[P<AssocItem>; 1]> {
354354
match &item.kind {
355355
AssocItemKind::Const(const_item)
@@ -358,7 +358,7 @@ fn librustc_parenthesize(mut librustc_expr: P<ast::Expr>) -> P<ast::Expr> {
358358
{
359359
SmallVec::from([item])
360360
}
361-
_ => walk_flat_map_item(self, item),
361+
_ => walk_flat_map_assoc_item(self, item, ctxt),
362362
}
363363
}
364364

0 commit comments

Comments
 (0)