diff options
author | Jonas Schievink <[email protected]> | 2020-12-15 19:33:05 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2020-12-15 19:33:05 +0000 |
commit | b238ddd21adf9910769522a21e31c2e14f664396 (patch) | |
tree | 219749056bcef5cd35cfc94826108c4f955b1c8b /crates/hir_def/src/body | |
parent | c31c3246a8c87a3639623c30b692a57e728bb046 (diff) |
Make macro def krate mandatory
Refactors builtin derive support to go through proper name resolution
Diffstat (limited to 'crates/hir_def/src/body')
-rw-r--r-- | crates/hir_def/src/body/lower.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_def/src/body/lower.rs b/crates/hir_def/src/body/lower.rs index e4bf5603c..23e2fd764 100644 --- a/crates/hir_def/src/body/lower.rs +++ b/crates/hir_def/src/body/lower.rs | |||
@@ -803,7 +803,7 @@ impl ExprCollector<'_> { | |||
803 | } | 803 | } |
804 | Either::Right(e) => { | 804 | Either::Right(e) => { |
805 | let mac = MacroDefId { | 805 | let mac = MacroDefId { |
806 | krate: Some(self.expander.module.krate), | 806 | krate: self.expander.module.krate, |
807 | ast_id: Some(self.expander.ast_id(&e)), | 807 | ast_id: Some(self.expander.ast_id(&e)), |
808 | kind: MacroDefKind::Declarative, | 808 | kind: MacroDefKind::Declarative, |
809 | local_inner: false, | 809 | local_inner: false, |