@@ -47,7 +47,9 @@ pub fn home_dir_with_env(env: &dyn Env) -> Option<PathBuf> {
4747 env. home_dir ( )
4848}
4949
50- /// Variant of `cargo_home` where the environment source is parameterized. This is
50+ /// Variant of `cargo_home` where the environment source is parameterized.
51+ ///
52+ /// This is
5153/// specifically to support in-process testing scenarios as environment
5254/// variables and user home metadata are normally process global state. See the
5355/// [`Env`] trait.
@@ -57,7 +59,9 @@ pub fn cargo_home_with_env(env: &dyn Env) -> io::Result<PathBuf> {
5759}
5860
5961/// Variant of `cargo_home_with_cwd` where the environment source is
60- /// parameterized. This is specifically to support in-process testing scenarios
62+ /// parameterized.
63+ ///
64+ /// This is specifically to support in-process testing scenarios
6165/// as environment variables and user home metadata are normally process global
6266/// state. See the `OsEnv` trait.
6367pub fn cargo_home_with_cwd_env ( env : & dyn Env , cwd : & Path ) -> io:: Result < PathBuf > {
@@ -77,7 +81,9 @@ pub fn cargo_home_with_cwd_env(env: &dyn Env, cwd: &Path) -> io::Result<PathBuf>
7781}
7882
7983/// Variant of `cargo_home_with_cwd` where the environment source is
80- /// parameterized. This is specifically to support in-process testing scenarios
84+ /// parameterized.
85+ ///
86+ /// This is specifically to support in-process testing scenarios
8187/// as environment variables and user home metadata are normally process global
8288/// state. See the `OsEnv` trait.
8389pub fn rustup_home_with_env ( env : & dyn Env ) -> io:: Result < PathBuf > {
@@ -86,7 +92,9 @@ pub fn rustup_home_with_env(env: &dyn Env) -> io::Result<PathBuf> {
8692}
8793
8894/// Variant of `cargo_home_with_cwd` where the environment source is
89- /// parameterized. This is specifically to support in-process testing scenarios
95+ /// parameterized.
96+ ///
97+ /// This is specifically to support in-process testing scenarios
9098/// as environment variables and user home metadata are normally process global
9199/// state. See the `OsEnv` trait.
92100pub fn rustup_home_with_cwd_env ( env : & dyn Env , cwd : & Path ) -> io:: Result < PathBuf > {
0 commit comments