File tree 2 files changed +3
-11
lines changed
2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ impl GenericPathUnsafe for Path {
154
154
///
155
155
/// # Failure
156
156
///
157
- /// Raises the `str::not_utf8` condition if not valid UTF-8.
157
+ /// Fails if not valid UTF-8.
158
158
#[ inline]
159
159
unsafe fn new_unchecked < T : BytesContainer > ( path : T ) -> Path {
160
160
let ( prefix, path) = Path :: normalize_ ( path. container_as_str ( ) . unwrap ( ) ) ;
@@ -168,7 +168,7 @@ impl GenericPathUnsafe for Path {
168
168
///
169
169
/// # Failure
170
170
///
171
- /// Raises the `str::not_utf8` condition if not valid UTF-8.
171
+ /// Fails if not valid UTF-8.
172
172
unsafe fn set_filename_unchecked < T : BytesContainer > ( & mut self , filename : T ) {
173
173
let filename = filename. container_as_str ( ) . unwrap ( ) ;
174
174
match self . sepidx_or_prefix_len ( ) {
@@ -591,7 +591,7 @@ impl Path {
591
591
/// # Failure
592
592
///
593
593
/// 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.
595
595
#[ inline]
596
596
pub fn new < T : BytesContainer > ( path : T ) -> Path {
597
597
GenericPath :: new ( path)
Original file line number Diff line number Diff line change @@ -117,14 +117,6 @@ use default::Default;
117
117
use send_str:: { SendStr , SendStrOwned } ;
118
118
use unstable:: raw:: Repr ;
119
119
120
- /*
121
- Section: Conditions
122
- */
123
-
124
- condition ! {
125
- pub not_utf8: ( ~str ) -> ~str ;
126
- }
127
-
128
120
/*
129
121
Section: Creating a string
130
122
*/
You can’t perform that action at this time.
0 commit comments