Skip to content

Commit

Permalink
Update version numbers for From impls
Browse files Browse the repository at this point in the history
  • Loading branch information
ollie27 committed Jun 21, 2017
1 parent 5a97036 commit 0d885ef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/liballoc/string.rs
Expand Up @@ -2008,7 +2008,7 @@ impl From<Box<str>> for String {
}
}

#[stable(feature = "box_from_str", since = "1.18.0")]
#[stable(feature = "box_from_str", since = "1.20.0")]
impl From<String> for Box<str> {
fn from(s: String) -> Box<str> {
s.into_boxed_str()
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/ffi/c_str.rs
Expand Up @@ -585,7 +585,7 @@ impl From<Box<CStr>> for CString {
}
}

#[stable(feature = "box_from_c_string", since = "1.18.0")]
#[stable(feature = "box_from_c_string", since = "1.20.0")]
impl From<CString> for Box<CStr> {
#[inline]
fn from(s: CString) -> Box<CStr> {
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/ffi/os_str.rs
Expand Up @@ -542,7 +542,7 @@ impl From<Box<OsStr>> for OsString {
}
}

#[stable(feature = "box_from_os_string", since = "1.18.0")]
#[stable(feature = "box_from_os_string", since = "1.20.0")]
impl From<OsString> for Box<OsStr> {
fn from(s: OsString) -> Box<OsStr> {
s.into_boxed_os_str()
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/path.rs
Expand Up @@ -1348,7 +1348,7 @@ impl From<Box<Path>> for PathBuf {
}
}

#[stable(feature = "box_from_path_buf", since = "1.18.0")]
#[stable(feature = "box_from_path_buf", since = "1.20.0")]
impl From<PathBuf> for Box<Path> {
fn from(p: PathBuf) -> Box<Path> {
p.into_boxed_path()
Expand Down

0 comments on commit 0d885ef

Please sign in to comment.