Skip to content

Commit 54d6509

Browse files
committed
Auto merge of #24724 - alexcrichton:symlink-stable, r=aturon
These functions were intended to be introduced as `#[stable]` as a stable API was deprecated in favor of them, but they just erroneously forgot the stability attributes.
2 parents a40261a + a318b51 commit 54d6509

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/libstd/sys/unix/ext.rs

+1
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ pub mod fs {
249249
/// # Ok(())
250250
/// # }
251251
/// ```
252+
#[stable(feature = "rust1", since = "1.0.0")]
252253
pub fn symlink<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::Result<()>
253254
{
254255
sys::fs2::symlink(src.as_ref(), dst.as_ref())

src/libstd/sys/windows/ext.rs

+2
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ pub mod fs {
256256
/// # Ok(())
257257
/// # }
258258
/// ```
259+
#[stable(feature = "rust1", since = "1.0.0")]
259260
pub fn symlink_file<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q)
260261
-> io::Result<()>
261262
{
@@ -278,6 +279,7 @@ pub mod fs {
278279
/// # Ok(())
279280
/// # }
280281
/// ```
282+
#[stable(feature = "rust1", since = "1.0.0")]
281283
pub fn symlink_dir<P: AsRef<Path>, Q: AsRef<Path>> (src: P, dst: Q)
282284
-> io::Result<()>
283285
{

0 commit comments

Comments
 (0)