From dee54244a68c33df5bcb375c3138a42aa80acb50 Mon Sep 17 00:00:00 2001 From: Lukas Lueg Date: Sun, 14 Feb 2021 22:39:47 +0100 Subject: [PATCH] Add missing env!-decl variant Resolves #82117 --- library/core/src/macros/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs index 7aaf5a5fd461..82272c451c3f 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.