diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-12-07 16:21:51 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-07 16:21:51 +0000 |
commit | c1824b4933f7a30b4253116290a0a6b2935eedc3 (patch) | |
tree | 30b2e506e326af121a716c92d42fc90229179072 /crates/hir_expand/src/proc_macro.rs | |
parent | 9a88332452d661d4afea10f0063c893142e08019 (diff) | |
parent | 577d5f1c337d5de8719bddcabd3d22a560a11b95 (diff) |
Merge #6745
6745: Some more proc macro cleanups r=jonas-schievink a=jonas-schievink
* Remove `ProcMacroClient::dummy` and just use `Option<ProcMacroClient>` instead
* Remember the type of proc macros (later allows us to reject using an incorrect macro type)
* Prepare a few internals for procedural attribute macros
bors r+
Co-authored-by: Jonas Schievink <[email protected]>
Diffstat (limited to 'crates/hir_expand/src/proc_macro.rs')
-rw-r--r-- | crates/hir_expand/src/proc_macro.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crates/hir_expand/src/proc_macro.rs b/crates/hir_expand/src/proc_macro.rs index 97edf0fb6..38882d2b6 100644 --- a/crates/hir_expand/src/proc_macro.rs +++ b/crates/hir_expand/src/proc_macro.rs | |||
@@ -26,7 +26,6 @@ impl ProcMacroExpander { | |||
26 | 26 | ||
27 | pub fn dummy(krate: CrateId) -> Self { | 27 | pub fn dummy(krate: CrateId) -> Self { |
28 | // FIXME: Should store the name for better errors | 28 | // FIXME: Should store the name for better errors |
29 | // FIXME: I think this is the second layer of "dummy" expansion, we should reduce that | ||
30 | Self { krate, proc_macro_id: None } | 29 | Self { krate, proc_macro_id: None } |
31 | } | 30 | } |
32 | 31 | ||