From 5d99ba1d9a5acf02a5cd50e456f164bd80b523b5 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Thu, 4 Feb 2021 20:49:24 +0100 Subject: Make `ModPath`'s representation private --- crates/hir_def/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/hir_def/src/lib.rs') 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 { def.as_lazy_macro( db.upcast(), krate, - MacroCallKind::Attr(self.ast_id, self.path.segments.last()?.to_string()), + MacroCallKind::Attr(self.ast_id, self.path.segments().last()?.to_string()), ) .into(), ) -- cgit v1.2.3