aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_expand/src/db.rs
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-12-03 14:31:04 +0000
committerJonas Schievink <[email protected]>2020-12-03 14:48:29 +0000
commit883c8d177d61d34d70d4fccef788fe4b35aaa7ea (patch)
treea7b245d83180d37ec2dacdaf46714db0e4d9a628 /crates/hir_expand/src/db.rs
parent4634bfb332897f8478ed885970e7cb21bb9c4fce (diff)
Make `compile_error!` lazy and emit a diagnostic
Diffstat (limited to 'crates/hir_expand/src/db.rs')
-rw-r--r--crates/hir_expand/src/db.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/hir_expand/src/db.rs b/crates/hir_expand/src/db.rs
index 4fd0ba290..842a177db 100644
--- a/crates/hir_expand/src/db.rs
+++ b/crates/hir_expand/src/db.rs
@@ -207,6 +207,7 @@ fn macro_expand_with_arg(
207 } else { 207 } else {
208 return ExpandResult { 208 return ExpandResult {
209 value: Some(db.lookup_intern_eager_expansion(id).subtree), 209 value: Some(db.lookup_intern_eager_expansion(id).subtree),
210 // FIXME: There could be errors here!
210 err: None, 211 err: None,
211 }; 212 };
212 } 213 }