Skip to content

Commit 530fba8

Browse files
committed
Try tweaking the env def-path and unconditionally exposing the env diagnostic item
1 parent 89df8aa commit 530fba8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

plrust/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fi
7575
git pull
7676
git submodule update --init --recursive
7777
else
78-
git clone https://github.com/tcdi/postgrestd.git --branch "rust-1.73.0" --recurse-submodules
78+
git clone https://github.com/tcdi/postgrestd.git --branch "thomcc/uncond-env" --recurse-submodules
7979
cd ./postgrestd
8080
fi
8181
rm -f rust-toolchain.toml

plrustc/plrustc/src/lints/builtin_macros.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ impl PlrustBuiltinMacros {
6161
let env_def_paths: &[&[Symbol]] = &[
6262
&[sym!(core), sym!(macros), sym!(builtin), sym!(env)],
6363
&[sym!(core), sym!(macros), sym!(builtin), sym!(option_env)],
64+
&[sym!(core), sym!(macros), sym!(env)],
65+
&[sym!(core), sym!(macros), sym!(option_env)],
66+
&[sym!(core), sym!(env)],
67+
&[sym!(core), sym!(option_env)],
6468
];
6569
if let Some((s, ..)) = utils::check_span_against_macro_def_paths(cx, span, &env_def_paths) {
6670
self.lint_env(cx, s);

0 commit comments

Comments
 (0)