diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-21 12:37:41 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-21 12:37:41 +0000 |
commit | a1f4c988e47b7160b11070d18f50657b6fb9014c (patch) | |
tree | 9ad1ac2391cf6c16257cbbd5da645bfbbd7be374 /crates/ra_hir_expand/src/name.rs | |
parent | cdc9d682b066b110e0a44e5f8f1c574b38c16ba9 (diff) | |
parent | 2058f704cb5045d0b19c299b1ebe0f261d153765 (diff) |
Merge #2630
2630: Add dummy implementations of env! and option_env! builtins r=matklad a=flodiebold
They don't do anything except return the correct type.
Also refactor the builtin macro tests a bit.
Co-authored-by: Florian Diebold <[email protected]>
Diffstat (limited to 'crates/ra_hir_expand/src/name.rs')
-rw-r--r-- | crates/ra_hir_expand/src/name.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_hir_expand/src/name.rs b/crates/ra_hir_expand/src/name.rs index fd02ffa4e..e62693b68 100644 --- a/crates/ra_hir_expand/src/name.rs +++ b/crates/ra_hir_expand/src/name.rs | |||
@@ -170,6 +170,8 @@ pub mod known { | |||
170 | stringify, | 170 | stringify, |
171 | format_args, | 171 | format_args, |
172 | format_args_nl, | 172 | format_args_nl, |
173 | env, | ||
174 | option_env, | ||
173 | // Builtin derives | 175 | // Builtin derives |
174 | Copy, | 176 | Copy, |
175 | Clone, | 177 | Clone, |