Skip to content

Commit ec422d7

Browse files
committed
[std::str] Remove the now unused not_utf8 condition.
1 parent 05ae134 commit ec422d7

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

src/libstd/path/windows.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl GenericPathUnsafe for Path {
154154
///
155155
/// # Failure
156156
///
157-
/// Raises the `str::not_utf8` condition if not valid UTF-8.
157+
/// Fails if not valid UTF-8.
158158
#[inline]
159159
unsafe fn new_unchecked<T: BytesContainer>(path: T) -> Path {
160160
let (prefix, path) = Path::normalize_(path.container_as_str().unwrap());
@@ -168,7 +168,7 @@ impl GenericPathUnsafe for Path {
168168
///
169169
/// # Failure
170170
///
171-
/// Raises the `str::not_utf8` condition if not valid UTF-8.
171+
/// Fails if not valid UTF-8.
172172
unsafe fn set_filename_unchecked<T: BytesContainer>(&mut self, filename: T) {
173173
let filename = filename.container_as_str().unwrap();
174174
match self.sepidx_or_prefix_len() {
@@ -591,7 +591,7 @@ impl Path {
591591
/// # Failure
592592
///
593593
/// Raises the `null_byte` condition if the vector contains a NUL.
594-
/// Raises the `str::not_utf8` condition if invalid UTF-8.
594+
/// Fails if invalid UTF-8.
595595
#[inline]
596596
pub fn new<T: BytesContainer>(path: T) -> Path {
597597
GenericPath::new(path)

src/libstd/str.rs

-8
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,6 @@ use default::Default;
117117
use send_str::{SendStr, SendStrOwned};
118118
use unstable::raw::Repr;
119119

120-
/*
121-
Section: Conditions
122-
*/
123-
124-
condition! {
125-
pub not_utf8: (~str) -> ~str;
126-
}
127-
128120
/*
129121
Section: Creating a string
130122
*/

0 commit comments

Comments
 (0)