Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-expand/src/lib.rs')
-rw-r--r--crates/hir-expand/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-expand/src/lib.rs b/crates/hir-expand/src/lib.rs
index 9c5714be2d..3f94f03647 100644
--- a/crates/hir-expand/src/lib.rs
+++ b/crates/hir-expand/src/lib.rs
@@ -53,7 +53,7 @@ use crate::{
},
db::ExpandDatabase,
mod_path::ModPath,
- proc_macro::{CustomProcMacroExpander, ProcMacroKind},
+ proc_macro::{CustomProcMacroExpander, ProcMacroKind, ProcMacros},
span_map::{ExpansionSpanMap, SpanMap},
};
@@ -176,7 +176,7 @@ impl ExpandErrorKind {
kind: RenderedExpandError::DISABLED,
},
&ExpandErrorKind::MissingProcMacroExpander(def_crate) => {
- match db.proc_macros_for_crate(def_crate).as_ref().and_then(|it| it.get_error()) {
+ match ProcMacros::get_for_crate(db, def_crate).and_then(|it| it.get_error()) {
Some(e) => RenderedExpandError {
message: e.to_string(),
error: e.is_hard_error(),