about summary refs log tree commit diff
path: root/src/libstd/ffi
diff options
context:
space:
mode:
authorAlexis Bourget <alexis.bourget@gmail.com>2020-06-14 19:21:44 +0200
committerAlexis Bourget <alexis.bourget@gmail.com>2020-06-14 19:31:11 +0200
commit5f4eb27a0dc5d17e4a74f1a2d71a8f5a30916e3a (patch)
tree52509ef3fed7ff1af0b52d286ff4904933802506 /src/libstd/ffi
parent6b955268d71907d9049a399a0e0a33f6448e1221 (diff)
Removing the TryFrom impl
Diffstat (limited to 'src/libstd/ffi')
-rw-r--r--src/libstd/ffi/c_str.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs
index 298f6c33457..6f7dc091897 100644
--- a/src/libstd/ffi/c_str.rs
+++ b/src/libstd/ffi/c_str.rs
@@ -1,7 +1,6 @@
 use crate::ascii;
 use crate::borrow::{Borrow, Cow};
 use crate::cmp::Ordering;
-use crate::convert::TryFrom;
 use crate::error::Error;
 use crate::fmt::{self, Write};
 use crate::io;
@@ -854,19 +853,6 @@ impl From<Vec<NonZeroU8>> for CString {
     }
 }
 
-#[unstable(feature = "cstring_from_vec_with_nul", issue = "73179")]
-impl TryFrom<Vec<u8>> for CString {
-    type Error = FromBytesWithNulError;
-
-    /// See the document about [`from_vec_with_nul`] for more
-    /// informations about the behaviour of this method.
-    ///
-    /// [`from_vec_with_nul`]: CString::from_vec_with_nul
-    fn try_from(value: Vec<u8>) -> Result<Self, Self::Error> {
-        Self::from_vec_with_nul(value)
-    }
-}
-
 #[stable(feature = "more_box_slice_clone", since = "1.29.0")]
 impl Clone for Box<CStr> {
     #[inline]