about summary refs log tree commit diff
path: root/library/std/src/path.rs
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-08-19 19:45:32 +0800
committerGitHub <noreply@github.com>2025-08-19 19:45:32 +0800
commit9a5c00a673e68c05fd520682dedecb81d9cbc89f (patch)
treeef7198dcde323dd145c9e2b769dfb27201b5dbaa /library/std/src/path.rs
parentb1a7bac798d5472c1932d9c12dc3d9f343e25b18 (diff)
parentb79ab4461da23ed4c5620369fb0f1cad12d35e80 (diff)
downloadrust-9a5c00a673e68c05fd520682dedecb81d9cbc89f.tar.gz
rust-9a5c00a673e68c05fd520682dedecb81d9cbc89f.zip
Rollup merge of #145464 - Kivooeo:stabilize-const_pathbuf_osstring_new, r=ibraheemdev
Stabilize `const_pathbuf_osstring_new` feature

This closes [tracking issue](https://github.com/rust-lang/rust/issues/141520) and stabilises `{OsString, PathBuf}::new` in const
Diffstat (limited to 'library/std/src/path.rs')
-rw-r--r--library/std/src/path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs
index 23e957484a5..3899fbf86db 100644
--- a/library/std/src/path.rs
+++ b/library/std/src/path.rs
@@ -1191,7 +1191,7 @@ impl PathBuf {
     #[stable(feature = "rust1", since = "1.0.0")]
     #[must_use]
     #[inline]
-    #[rustc_const_unstable(feature = "const_pathbuf_osstring_new", issue = "141520")]
+    #[rustc_const_stable(feature = "const_pathbuf_osstring_new", since = "CURRENT_RUSTC_VERSION")]
     pub const fn new() -> PathBuf {
         PathBuf { inner: OsString::new() }
     }