Skip to content

Commit 439ae17

Browse files
committed
Don't label derive macros with their banged_name
1 parent 80fdb13 commit 439ae17

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/ide_completion/src/render/macro_.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ impl<'a> MacroRender<'a> {
7474
if self.needs_bang() && self.ctx.snippet_cap().is_some() {
7575
format!("{}!{}…{}", self.name, self.bra, self.ket)
7676
} else {
77-
self.banged_name()
77+
if self.macro_.kind() == hir::MacroKind::Derive {
78+
self.name.to_string()
79+
} else {
80+
self.banged_name()
81+
}
7882
}
7983
}
8084

0 commit comments

Comments
 (0)