about summary refs log tree commit diff
path: root/src/libstd/path
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2013-12-23 17:50:27 +0100
committerSimon Sapin <simon.sapin@exyr.org>2014-01-21 15:48:48 -0800
commitec422d70c3b10974b81eac6988fc5b3fa6ce60bc (patch)
tree5195b6aa5366cfeb66764fa479f6c5cddda22f03 /src/libstd/path
parent05ae134acebee3f35af4880de113a7ae7ce20002 (diff)
downloadrust-ec422d70c3b10974b81eac6988fc5b3fa6ce60bc.tar.gz
rust-ec422d70c3b10974b81eac6988fc5b3fa6ce60bc.zip
[std::str] Remove the now unused not_utf8 condition.
Diffstat (limited to 'src/libstd/path')
-rw-r--r--src/libstd/path/windows.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs
index 33fa84c7c49..666b8977cc9 100644
--- a/src/libstd/path/windows.rs
+++ b/src/libstd/path/windows.rs
@@ -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 @@ impl GenericPathUnsafe for 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)