Use Ident::dummy() in dummy_annotatable.

This is exactly the kind of case `Ident::dummy()` is for.
This commit is contained in:
Nicholas Nethercote 2025-03-24 18:58:18 +11:00
parent 1a6266340e
commit bd61e0129f

View file

@ -103,7 +103,7 @@ impl MultiItemModifier for Expander {
fn dummy_annotatable() -> Annotatable {
Annotatable::GenericParam(ast::GenericParam {
id: ast::DUMMY_NODE_ID,
ident: Ident::empty(),
ident: Ident::dummy(),
attrs: Default::default(),
bounds: Default::default(),
is_placeholder: false,