about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2021-02-15 16:07:05 +0100
committerGitHub <noreply@github.com>2021-02-15 16:07:05 +0100
commitb0bd056bc94e6831387d07055ae05a8afcaaaae7 (patch)
treefb4c5868bb19e6cab2195abde2139450772e827d
parent285ea2f80d8e97a71c3d84c80b359590dfaef473 (diff)
parent3d7fcfff76452202a5da532b7cd790fdc53e988b (diff)
downloadrust-b0bd056bc94e6831387d07055ae05a8afcaaaae7.tar.gz
rust-b0bd056bc94e6831387d07055ae05a8afcaaaae7.zip
Rollup merge of #82118 - lukaslueg:env_decl, r=m-ou-se
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..b3802c1abde 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.