diff options
| author | Mads Marquart <mads@marquart.dk> | 2025-03-26 15:46:05 +0100 |
|---|---|---|
| committer | Mads Marquart <mads@marquart.dk> | 2025-03-26 15:46:05 +0100 |
| commit | 17db054141f909277a0c57b4698f420636a2c511 (patch) | |
| tree | d9c66835ef6b5f4c27dd64e843bb211e7e291a88 /compiler/rustc_data_structures/src | |
| parent | c772573708cdc863d9fa03ca4973f9ab08ac9d43 (diff) | |
| download | rust-17db054141f909277a0c57b4698f420636a2c511.tar.gz rust-17db054141f909277a0c57b4698f420636a2c511.zip | |
Add `TyCtx::env_var_os`
Along with `TyCtx::env_var` helper. These can be used to track environment variable accesses in the query system. Since `TyCtx::env_var_os` uses `OsStr`, this commit also adds the necessary trait implementations for that to work.
Diffstat (limited to 'compiler/rustc_data_structures/src')
| -rw-r--r-- | compiler/rustc_data_structures/src/stable_hasher.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_data_structures/src/stable_hasher.rs b/compiler/rustc_data_structures/src/stable_hasher.rs index ffbe54d6206..3a64c924cc2 100644 --- a/compiler/rustc_data_structures/src/stable_hasher.rs +++ b/compiler/rustc_data_structures/src/stable_hasher.rs @@ -564,6 +564,8 @@ where } } +impl_stable_traits_for_trivial_type!(::std::ffi::OsStr); + impl_stable_traits_for_trivial_type!(::std::path::Path); impl_stable_traits_for_trivial_type!(::std::path::PathBuf); |
