about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukas Lueg <lukas.lueg@gmail.com>2021-02-14 22:39:47 +0100
committerLukas Lueg <lukas.lueg@gmail.com>2021-02-14 22:39:47 +0100
commitdee54244a68c33df5bcb375c3138a42aa80acb50 (patch)
tree8e4334506441cc54712a35ff109a3b2601b903f4
parent5fa22fe6f821ac3801d05f624b123dda25fde32c (diff)
downloadrust-dee54244a68c33df5bcb375c3138a42aa80acb50.tar.gz
rust-dee54244a68c33df5bcb375c3138a42aa80acb50.zip
Add missing env!-decl variant
Resolves #82117
-rw-r--r--library/core/src/macros/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs
index 7aaf5a5fd46..82272c451c3 100644
--- a/library/core/src/macros/mod.rs
+++ b/library/core/src/macros/mod.rs
@@ -816,6 +816,7 @@ pub(crate) mod builtin {
     #[macro_export]
     macro_rules! env {
         ($name:expr $(,)?) => {{ /* compiler built-in */ }};
+        ($name:expr, $error_msg:expr) => {{ /* compiler built-in */ }};
     }
 
     /// Optionally inspects an environment variable at compile time.