1
Fork 0

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.
This commit is contained in:
Mads Marquart 2025-03-26 15:46:05 +01:00
parent c772573708
commit 17db054141
6 changed files with 75 additions and 1 deletions

View file

@ -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);