Skip to content

Commit

Permalink
Update rust-analyzer to support new injected_env_var function
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Dec 11, 2023
1 parent 6ce2fef commit 5967ceb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tools/rust-analyzer/crates/proc-macro-srv/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,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 5967ceb

Please sign in to comment.