Skip to content

Commit

Permalink
Remove duplicate ParseError definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
zachs18 committed Jan 19, 2024
1 parent aba7dd9 commit b93f246
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions library/alloc/src/string/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2758,14 +2758,6 @@ impl<A: Allocator> ops::DerefMut for String<A> {
}
}

/// A type alias for [`Infallible`].
///
/// This alias exists for backwards compatibility, and may be eventually deprecated.
///
/// [`Infallible`]: core::convert::Infallible "convert::Infallible"
#[stable(feature = "str_parse_error", since = "1.5.0")]
pub type ParseError = core::convert::Infallible;

#[cfg(not(no_global_oom_handling))]
#[stable(feature = "rust1", since = "1.0.0")]
impl FromStr for String {
Expand Down

0 comments on commit b93f246

Please sign in to comment.