Skip to content

Commit

Permalink
Auto merge of #118830 - GuillaumeGomez:env-tracked_env, r=Nilstrieb
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
bors committed Dec 17, 2023
2 parents be035e8 + 6adb21a commit cac74d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/proc-macro-srv/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ impl server::Types for RustAnalyzer {
}

impl server::FreeFunctions for RustAnalyzer {
fn injected_env_var(&mut self, _var: &str) -> Option<String> {
None
}

fn track_env_var(&mut self, _var: &str, _value: Option<&str>) {
// FIXME: track env var accesses
// https://github.com/rust-lang/rust/pull/71858
Expand Down

0 comments on commit cac74d9

Please sign in to comment.