Auto merge of #73391 - pickfire:liballoc-panic-doc, r=Mark-Simulacrum

Add liballoc doc panic detail according to RawVec
This commit is contained in:
bors 2020-06-29 12:00:31 +00:00
commit 0ca7f74dbd
2 changed files with 5 additions and 11 deletions

View File

@ -80,9 +80,7 @@ impl<T> RawVec<T, Global> {
/// ///
/// # Panics /// # Panics
/// ///
/// * Panics if the requested capacity exceeds `usize::MAX` bytes. /// Panics if the requested capacity exceeds `isize::MAX` bytes.
/// * Panics on 32-bit platforms if the requested capacity exceeds
/// `isize::MAX` bytes.
/// ///
/// # Aborts /// # Aborts
/// ///
@ -251,9 +249,7 @@ impl<T, A: AllocRef> RawVec<T, A> {
/// ///
/// # Panics /// # Panics
/// ///
/// * Panics if the requested capacity exceeds `usize::MAX` bytes. /// Panics if the new capacity exceeds `isize::MAX` bytes.
/// * Panics on 32-bit platforms if the requested capacity exceeds
/// `isize::MAX` bytes.
/// ///
/// # Aborts /// # Aborts
/// ///
@ -318,9 +314,7 @@ impl<T, A: AllocRef> RawVec<T, A> {
/// ///
/// # Panics /// # Panics
/// ///
/// * Panics if the requested capacity exceeds `usize::MAX` bytes. /// Panics if the new capacity exceeds `isize::MAX` bytes.
/// * Panics on 32-bit platforms if the requested capacity exceeds
/// `isize::MAX` bytes.
/// ///
/// # Aborts /// # Aborts
/// ///

View File

@ -491,7 +491,7 @@ impl<T> Vec<T> {
/// ///
/// # Panics /// # Panics
/// ///
/// Panics if the new capacity overflows `usize`. /// Panics if the new capacity exceeds `isize::MAX` bytes.
/// ///
/// # Examples /// # Examples
/// ///
@ -1188,7 +1188,7 @@ impl<T> Vec<T> {
/// ///
/// # Panics /// # Panics
/// ///
/// Panics if the number of elements in the vector overflows a `usize`. /// Panics if the new capacity exceeds `isize::MAX` bytes.
/// ///
/// # Examples /// # Examples
/// ///