[std::str] Remove the now unused not_utf8 condition.
This commit is contained in:
parent
05ae134ace
commit
ec422d70c3
2 changed files with 3 additions and 11 deletions
|
@ -154,7 +154,7 @@ impl GenericPathUnsafe for Path {
|
||||||
///
|
///
|
||||||
/// # Failure
|
/// # Failure
|
||||||
///
|
///
|
||||||
/// Raises the `str::not_utf8` condition if not valid UTF-8.
|
/// Fails if not valid UTF-8.
|
||||||
#[inline]
|
#[inline]
|
||||||
unsafe fn new_unchecked<T: BytesContainer>(path: T) -> Path {
|
unsafe fn new_unchecked<T: BytesContainer>(path: T) -> Path {
|
||||||
let (prefix, path) = Path::normalize_(path.container_as_str().unwrap());
|
let (prefix, path) = Path::normalize_(path.container_as_str().unwrap());
|
||||||
|
@ -168,7 +168,7 @@ impl GenericPathUnsafe for Path {
|
||||||
///
|
///
|
||||||
/// # Failure
|
/// # 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) {
|
unsafe fn set_filename_unchecked<T: BytesContainer>(&mut self, filename: T) {
|
||||||
let filename = filename.container_as_str().unwrap();
|
let filename = filename.container_as_str().unwrap();
|
||||||
match self.sepidx_or_prefix_len() {
|
match self.sepidx_or_prefix_len() {
|
||||||
|
@ -591,7 +591,7 @@ impl Path {
|
||||||
/// # Failure
|
/// # Failure
|
||||||
///
|
///
|
||||||
/// Raises the `null_byte` condition if the vector contains a NUL.
|
/// 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]
|
#[inline]
|
||||||
pub fn new<T: BytesContainer>(path: T) -> Path {
|
pub fn new<T: BytesContainer>(path: T) -> Path {
|
||||||
GenericPath::new(path)
|
GenericPath::new(path)
|
||||||
|
|
|
@ -117,14 +117,6 @@ use default::Default;
|
||||||
use send_str::{SendStr, SendStrOwned};
|
use send_str::{SendStr, SendStrOwned};
|
||||||
use unstable::raw::Repr;
|
use unstable::raw::Repr;
|
||||||
|
|
||||||
/*
|
|
||||||
Section: Conditions
|
|
||||||
*/
|
|
||||||
|
|
||||||
condition! {
|
|
||||||
pub not_utf8: (~str) -> ~str;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Section: Creating a string
|
Section: Creating a string
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue