Skip to content

Commit a669b0a

Browse files
authored
Rollup merge of rust-lang#137327 - arlosi:home-dir, r=Mark-Simulacrum
Undeprecate env::home_dir rust-lang#132515 fixed the implementation of `env::home_dir`, but didn't remove the deprecation. Based on [this comment](rust-lang#132515 (comment)), libs-api decided to undeprecate in the next release. Let's do that! cc rust-lang#132650
2 parents 6ca116b + 2c752bc commit a669b0a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

library/std/src/env.rs

-5
Original file line numberDiff line numberDiff line change
@@ -641,11 +641,6 @@ impl Error for JoinPathsError {
641641
/// None => println!("Impossible to get your home dir!"),
642642
/// }
643643
/// ```
644-
#[deprecated(
645-
since = "1.29.0",
646-
note = "This function's behavior may be unexpected on Windows. \
647-
Consider using a crate from crates.io instead."
648-
)]
649644
#[must_use]
650645
#[stable(feature = "env", since = "1.0.0")]
651646
pub fn home_dir() -> Option<PathBuf> {

0 commit comments

Comments
 (0)