mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 15:14:32 +00:00
Auto merge of #118830 - GuillaumeGomez:env-tracked_env, r=Nilstrieb
Add support for `--env` on `tracked_env::var` Follow-up of https://github.com/rust-lang/rust/pull/118368. Part of Part of https://github.com/rust-lang/rust/issues/80792. It adds support of the `--env` option for proc-macros through `tracked_env::var`. r? `@Nilstrieb`
This commit is contained in:
commit
cac74d98f6
1 changed files with 4 additions and 0 deletions
|
@ -58,6 +58,10 @@ impl server::Types for RustAnalyzer {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl server::FreeFunctions 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>) {
|
fn track_env_var(&mut self, _var: &str, _value: Option<&str>) {
|
||||||
// FIXME: track env var accesses
|
// FIXME: track env var accesses
|
||||||
// https://github.com/rust-lang/rust/pull/71858
|
// https://github.com/rust-lang/rust/pull/71858
|
||||||
|
|
Loading…
Reference in a new issue