Skip to content

Commit 2d0ba36

Browse files
committed
Auto merge of #118830 - GuillaumeGomez:env-tracked_env, r=Nilstrieb
Add support for `--env` on `tracked_env::var` Follow-up of rust-lang/rust#118368. Part of Part of rust-lang/rust#80792. It adds support of the `--env` option for proc-macros through `tracked_env::var`. r? `@Nilstrieb`
2 parents 2312494 + df2507b commit 2d0ba36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/proc-macro-srv/src/server.rs

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ impl server::Types for RustAnalyzer {
5858
}
5959

6060
impl server::FreeFunctions for RustAnalyzer {
61+
fn injected_env_var(&mut self, _var: &str) -> Option<String> {
62+
None
63+
}
64+
6165
fn track_env_var(&mut self, _var: &str, _value: Option<&str>) {
6266
// FIXME: track env var accesses
6367
// https://github.com/rust-lang/rust/pull/71858

0 commit comments

Comments
 (0)