diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-03-25 12:25:46 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-25 12:25:46 +0000 |
commit | 8d667bb32ed8460988bf9fe3515a6f8318adb8b0 (patch) | |
tree | 5d41d254dc94ff7d8d20063a08df2b9b133d34d9 /crates/ra_mbe/src | |
parent | e2dd17f75b1bb5e1185acff66211e74430177592 (diff) | |
parent | 2adc9a8d5f8f7686a125a478330c67a2d46fba98 (diff) |
Merge #3692
3692: Introduce `MacroDefKind::CustomDerive` r=matklad a=edwin0cheng
This PR introduce a new `MacroDefKind` `CustomDerive`. And use a new `ProcMacroExpander` for its expanding. And the expander is a dummy for now.
Related: #3654
Co-authored-by: Edwin Cheng <[email protected]>
Diffstat (limited to 'crates/ra_mbe/src')
-rw-r--r-- | crates/ra_mbe/src/syntax_bridge.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_mbe/src/syntax_bridge.rs b/crates/ra_mbe/src/syntax_bridge.rs index e3cde9eed..8e8ae2b29 100644 --- a/crates/ra_mbe/src/syntax_bridge.rs +++ b/crates/ra_mbe/src/syntax_bridge.rs | |||
@@ -33,7 +33,7 @@ impl TokenTextRange { | |||
33 | } | 33 | } |
34 | 34 | ||
35 | /// Maps `tt::TokenId` to the relative range of the original token. | 35 | /// Maps `tt::TokenId` to the relative range of the original token. |
36 | #[derive(Debug, PartialEq, Eq, Default)] | 36 | #[derive(Debug, PartialEq, Eq, Clone, Default)] |
37 | pub struct TokenMap { | 37 | pub struct TokenMap { |
38 | /// Maps `tt::TokenId` to the *relative* source range. | 38 | /// Maps `tt::TokenId` to the *relative* source range. |
39 | entries: Vec<(tt::TokenId, TokenTextRange)>, | 39 | entries: Vec<(tt::TokenId, TokenTextRange)>, |