Skip to content

Commit

Permalink
Auto merge of rust-lang#118830 - GuillaumeGomez:env-tracked_env, r=Ni…
Browse files Browse the repository at this point in the history
…lstrieb

Add support for `--env` on `tracked_env::var`

Follow-up of rust-lang#118368.
Part of Part of rust-lang#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.