about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorjyn <github@jyn.dev>2025-04-19 11:42:38 -0400
committerjyn <github@jyn.dev>2025-04-19 12:15:22 -0400
commitfdcc2faaa206f2fcecd5a1ee40e1db6a116c9500 (patch)
tree18490bb3418d47c82fbe17f1d021f4d05661ae80 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent53bd63400f223993adf036d180e42089dd9f2b48 (diff)
downloadrust-fdcc2faaa206f2fcecd5a1ee40e1db6a116c9500.tar.gz
rust-fdcc2faaa206f2fcecd5a1ee40e1db6a116c9500.zip
allow using `null` to unset an environment variable
this makes three changes:
- all callsites of `toolchain::command` are changed to use
  `command(path, extra_env)`, instead of manually adding the env after
  the fact.
- all `map<str, str>` are changed to `map<str, option<str>>`.
- `command` checks for None and calls `env_remove` if so.

this caught several places where environment variables weren't being
propagated:
- when running `rustc --print=target-libdir`
- when running `cargo rustc -- --print=target-spec-json`
- when running the custom DiscoverLinkedProjects config. I *think* this
  is for use with non-cargo build systems, so I didn't change it.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions