From f46a6f32246696a1585c2c9e68c78b44079d68a5 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 17 Nov 2024 19:55:53 -0800 Subject: [PATCH] Update test suite to nightly-2024-11-18 --- 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 1fa64b320..e64cbf1dd 100644 --- a/tests/test_precedence.rs +++ b/tests/test_precedence.rs @@ -205,7 +205,7 @@ fn librustc_parenthesize(mut librustc_expr: P) -> P { 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; @@ -349,7 +349,7 @@ fn librustc_parenthesize(mut librustc_expr: P) -> P { fn flat_map_assoc_item( &mut self, item: P, - _ctxt: AssocCtxt, + ctxt: AssocCtxt, ) -> SmallVec<[P; 1]> { match &item.kind { AssocItemKind::Const(const_item) @@ -358,7 +358,7 @@ fn librustc_parenthesize(mut librustc_expr: P) -> P { { SmallVec::from([item]) } - _ => walk_flat_map_item(self, item), + _ => walk_flat_map_assoc_item(self, item, ctxt), } }