]> git.lizzy.rs Git - rust.git/commitdiff
[std::str] Remove the now unused not_utf8 condition.
authorSimon Sapin <simon.sapin@exyr.org>
Mon, 23 Dec 2013 16:50:27 +0000 (17:50 +0100)
committerSimon Sapin <simon.sapin@exyr.org>
Tue, 21 Jan 2014 23:48:48 +0000 (15:48 -0800)
src/libstd/path/windows.rs
src/libstd/str.rs

index 33fa84c7c49189573e651f64826bdf6c0c6daa1d..666b8977cc972d1607862b14ff905178913129e7 100644 (file)
@@ -154,7 +154,7 @@ impl GenericPathUnsafe for Path {
     ///
     /// # Failure
     ///
-    /// Raises the `str::not_utf8` condition if not valid UTF-8.
+    /// Fails if not valid UTF-8.
     #[inline]
     unsafe fn new_unchecked<T: BytesContainer>(path: T) -> Path {
         let (prefix, path) = Path::normalize_(path.container_as_str().unwrap());
@@ -168,7 +168,7 @@ unsafe fn new_unchecked<T: BytesContainer>(path: T) -> Path {
     ///
     /// # Failure
     ///
-    /// Raises the `str::not_utf8` condition if not valid UTF-8.
+    /// Fails if not valid UTF-8.
     unsafe fn set_filename_unchecked<T: BytesContainer>(&mut self, filename: T) {
         let filename = filename.container_as_str().unwrap();
         match self.sepidx_or_prefix_len() {
@@ -591,7 +591,7 @@ impl Path {
     /// # Failure
     ///
     /// Raises the `null_byte` condition if the vector contains a NUL.
-    /// Raises the `str::not_utf8` condition if invalid UTF-8.
+    /// Fails if invalid UTF-8.
     #[inline]
     pub fn new<T: BytesContainer>(path: T) -> Path {
         GenericPath::new(path)
index 6d52e94064c094b945d9b5d249f4fd455ecc04c5..95a02e1631a9af9aea6d13e63edcaf2588dafb33 100644 (file)
@@ -117,14 +117,6 @@ fn main() {
 use send_str::{SendStr, SendStrOwned};
 use unstable::raw::Repr;
 
-/*
-Section: Conditions
-*/
-
-condition! {
-    pub not_utf8: (~str) -> ~str;
-}
-
 /*
 Section: Creating a string
 */