From 6ea7c319154f9ec10721f4041afc9d07d6b2476b Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Wed, 11 Mar 2020 11:04:02 +0800 Subject: Add extern source --- crates/ra_hir_expand/src/builtin_macro.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates/ra_hir_expand') diff --git a/crates/ra_hir_expand/src/builtin_macro.rs b/crates/ra_hir_expand/src/builtin_macro.rs index 298ec22ff..a90007f26 100644 --- a/crates/ra_hir_expand/src/builtin_macro.rs +++ b/crates/ra_hir_expand/src/builtin_macro.rs @@ -262,7 +262,8 @@ fn relative_file(db: &dyn AstDatabase, call_id: MacroCallId, path: &str) -> Opti // Extern paths ? let krate = db.relevant_crates(call_site).get(0)?.clone(); - let (extern_source_id, relative_file) = db.crate_graph()[krate].env.extern_path(path)?; + let (extern_source_id, relative_file) = + db.crate_graph()[krate].extern_source.extern_path(path)?; db.resolve_extern_path(extern_source_id, &relative_file) } -- cgit v1.2.3