diff options
Diffstat (limited to 'crates/hir_def/src/lib.rs')
-rw-r--r-- | crates/hir_def/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_def/src/lib.rs b/crates/hir_def/src/lib.rs index 5dd3705b0..b50923747 100644 --- a/crates/hir_def/src/lib.rs +++ b/crates/hir_def/src/lib.rs | |||
@@ -662,7 +662,7 @@ impl AsMacroCall for AstIdWithPath<ast::Item> { | |||
662 | def.as_lazy_macro( | 662 | def.as_lazy_macro( |
663 | db.upcast(), | 663 | db.upcast(), |
664 | krate, | 664 | krate, |
665 | MacroCallKind::Attr(self.ast_id, self.path.segments.last()?.to_string()), | 665 | MacroCallKind::Attr(self.ast_id, self.path.segments().last()?.to_string()), |
666 | ) | 666 | ) |
667 | .into(), | 667 | .into(), |
668 | ) | 668 | ) |