Skip to content

Commit

Permalink
Rollup merge of rust-lang#137327 - arlosi:home-dir, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
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
  • Loading branch information
compiler-errors authored Mar 6, 2025
2 parents ca9f615 + 2c752bc commit 978893a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions library/std/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,11 +641,6 @@ impl Error for JoinPathsError {
/// None => println!("Impossible to get your home dir!"),
/// }
/// ```
#[deprecated(
since = "1.29.0",
note = "This function's behavior may be unexpected on Windows. \
Consider using a crate from crates.io instead."
)]
#[must_use]
#[stable(feature = "env", since = "1.0.0")]
pub fn home_dir() -> Option<PathBuf> {
Expand Down

0 comments on commit 978893a

Please sign in to comment.