Skip to content

Commit bd61e01

Browse files
committed
Use Ident::dummy() in dummy_annotatable.
This is exactly the kind of case `Ident::dummy()` is for.
1 parent 1a62663 commit bd61e01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_builtin_macros/src/derive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl MultiItemModifier for Expander {
103103
fn dummy_annotatable() -> Annotatable {
104104
Annotatable::GenericParam(ast::GenericParam {
105105
id: ast::DUMMY_NODE_ID,
106-
ident: Ident::empty(),
106+
ident: Ident::dummy(),
107107
attrs: Default::default(),
108108
bounds: Default::default(),
109109
is_placeholder: false,

0 commit comments

Comments
 (0)