aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_expand/src/quote.rs
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-12-21 12:33:44 +0000
committerFlorian Diebold <[email protected]>2019-12-21 12:34:43 +0000
commit2058f704cb5045d0b19c299b1ebe0f261d153765 (patch)
tree9ad1ac2391cf6c16257cbbd5da645bfbbd7be374 /crates/ra_hir_expand/src/quote.rs
parentcdc9d682b066b110e0a44e5f8f1c574b38c16ba9 (diff)
Add dummy implementations of env! and option_env! builtins
They don't do anything except return the correct type. Also refactor the builtin macro tests a bit.
Diffstat (limited to 'crates/ra_hir_expand/src/quote.rs')
-rw-r--r--crates/ra_hir_expand/src/quote.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_hir_expand/src/quote.rs b/crates/ra_hir_expand/src/quote.rs
index 49155fe62..4de219ce4 100644
--- a/crates/ra_hir_expand/src/quote.rs
+++ b/crates/ra_hir_expand/src/quote.rs
@@ -102,6 +102,8 @@ macro_rules! __quote {
102 ( : ) => {$crate::__quote!(@PUNCT ':')}; 102 ( : ) => {$crate::__quote!(@PUNCT ':')};
103 ( :: ) => {$crate::__quote!(@PUNCT ':', ':')}; 103 ( :: ) => {$crate::__quote!(@PUNCT ':', ':')};
104 ( . ) => {$crate::__quote!(@PUNCT '.')}; 104 ( . ) => {$crate::__quote!(@PUNCT '.')};
105 ( < ) => {$crate::__quote!(@PUNCT '<')};
106 ( > ) => {$crate::__quote!(@PUNCT '>')};
105 107
106 ( $first:tt $($tail:tt)+ ) => { 108 ( $first:tt $($tail:tt)+ ) => {
107 { 109 {