Home
last modified time | relevance | path

Searched refs:CapacityOverflow (Results 1 – 25 of 65) sorted by relevance

123

/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/alloc/tests/
H A Dstring.rs757 if let Err(CapacityOverflow) = empty_string.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
761 if let Err(CapacityOverflow) = empty_string.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
768 Err(CapacityOverflow), in test_try_reserve()
775 Err(CapacityOverflow), in test_try_reserve()
784 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
787 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
793 Err(CapacityOverflow), in test_try_reserve()
800 Err(CapacityOverflow), in test_try_reserve()
819 if let Err(CapacityOverflow) = empty_string.try_reserve_exact(MAX_CAP).map_err(|e| e.kind()) in test_try_reserve_exact()
823 if let Err(CapacityOverflow) = empty_string.try_reserve_exact(MAX_CAP).map_err(|e| e.kind()) in test_try_reserve_exact()
[all …]
H A Dvec_deque.rs1216 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1220 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1227 Err(CapacityOverflow), in test_try_reserve()
1234 Err(CapacityOverflow), in test_try_reserve()
1243 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1246 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1252 Err(CapacityOverflow), in test_try_reserve()
1259 Err(CapacityOverflow), in test_try_reserve()
1268 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
1272 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
[all …]
H A Dvec.rs1729 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1733 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1740 Err(CapacityOverflow), in test_try_reserve()
1747 Err(CapacityOverflow), in test_try_reserve()
1756 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1759 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1765 Err(CapacityOverflow), in test_try_reserve()
1772 Err(CapacityOverflow), in test_try_reserve()
1781 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
1785 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
[all …]
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/alloc/tests/
H A Dstring.rs757 if let Err(CapacityOverflow) = empty_string.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
761 if let Err(CapacityOverflow) = empty_string.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
768 Err(CapacityOverflow), in test_try_reserve()
775 Err(CapacityOverflow), in test_try_reserve()
784 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
787 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
793 Err(CapacityOverflow), in test_try_reserve()
800 Err(CapacityOverflow), in test_try_reserve()
819 if let Err(CapacityOverflow) = empty_string.try_reserve_exact(MAX_CAP).map_err(|e| e.kind()) in test_try_reserve_exact()
823 if let Err(CapacityOverflow) = empty_string.try_reserve_exact(MAX_CAP).map_err(|e| e.kind()) in test_try_reserve_exact()
[all …]
H A Dvec_deque.rs1216 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1220 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1227 Err(CapacityOverflow), in test_try_reserve()
1234 Err(CapacityOverflow), in test_try_reserve()
1243 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1246 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1252 Err(CapacityOverflow), in test_try_reserve()
1259 Err(CapacityOverflow), in test_try_reserve()
1268 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
1272 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
[all …]
H A Dvec.rs1729 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1733 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1740 Err(CapacityOverflow), in test_try_reserve()
1747 Err(CapacityOverflow), in test_try_reserve()
1756 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1759 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1765 Err(CapacityOverflow), in test_try_reserve()
1772 Err(CapacityOverflow), in test_try_reserve()
1781 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
1785 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/alloc/tests/
H A Dstring.rs757 if let Err(CapacityOverflow) = empty_string.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
761 if let Err(CapacityOverflow) = empty_string.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
768 Err(CapacityOverflow), in test_try_reserve()
775 Err(CapacityOverflow), in test_try_reserve()
784 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
787 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
793 Err(CapacityOverflow), in test_try_reserve()
800 Err(CapacityOverflow), in test_try_reserve()
819 if let Err(CapacityOverflow) = empty_string.try_reserve_exact(MAX_CAP).map_err(|e| e.kind()) in test_try_reserve_exact()
823 if let Err(CapacityOverflow) = empty_string.try_reserve_exact(MAX_CAP).map_err(|e| e.kind()) in test_try_reserve_exact()
[all …]
H A Dvec_deque.rs1216 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1220 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1227 Err(CapacityOverflow), in test_try_reserve()
1234 Err(CapacityOverflow), in test_try_reserve()
1243 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1246 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1252 Err(CapacityOverflow), in test_try_reserve()
1259 Err(CapacityOverflow), in test_try_reserve()
1268 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
1272 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
[all …]
H A Dvec.rs1729 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1733 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1740 Err(CapacityOverflow), in test_try_reserve()
1747 Err(CapacityOverflow), in test_try_reserve()
1756 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1759 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1765 Err(CapacityOverflow), in test_try_reserve()
1772 Err(CapacityOverflow), in test_try_reserve()
1781 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
1785 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/alloc/tests/
H A Dstring.rs757 if let Err(CapacityOverflow) = empty_string.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
761 if let Err(CapacityOverflow) = empty_string.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
768 Err(CapacityOverflow), in test_try_reserve()
775 Err(CapacityOverflow), in test_try_reserve()
784 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
787 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
793 Err(CapacityOverflow), in test_try_reserve()
800 Err(CapacityOverflow), in test_try_reserve()
819 if let Err(CapacityOverflow) = empty_string.try_reserve_exact(MAX_CAP).map_err(|e| e.kind()) in test_try_reserve_exact()
823 if let Err(CapacityOverflow) = empty_string.try_reserve_exact(MAX_CAP).map_err(|e| e.kind()) in test_try_reserve_exact()
[all …]
H A Dvec_deque.rs1216 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1220 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1227 Err(CapacityOverflow), in test_try_reserve()
1234 Err(CapacityOverflow), in test_try_reserve()
1243 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1246 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1252 Err(CapacityOverflow), in test_try_reserve()
1259 Err(CapacityOverflow), in test_try_reserve()
1268 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
1272 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
[all …]
H A Dvec.rs1729 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1733 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1740 Err(CapacityOverflow), in test_try_reserve()
1747 Err(CapacityOverflow), in test_try_reserve()
1756 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1759 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1765 Err(CapacityOverflow), in test_try_reserve()
1772 Err(CapacityOverflow), in test_try_reserve()
1781 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
1785 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/alloc/tests/
H A Dstring.rs757 if let Err(CapacityOverflow) = empty_string.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
761 if let Err(CapacityOverflow) = empty_string.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
768 Err(CapacityOverflow), in test_try_reserve()
775 Err(CapacityOverflow), in test_try_reserve()
784 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
787 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
793 Err(CapacityOverflow), in test_try_reserve()
800 Err(CapacityOverflow), in test_try_reserve()
819 if let Err(CapacityOverflow) = empty_string.try_reserve_exact(MAX_CAP).map_err(|e| e.kind()) in test_try_reserve_exact()
823 if let Err(CapacityOverflow) = empty_string.try_reserve_exact(MAX_CAP).map_err(|e| e.kind()) in test_try_reserve_exact()
[all …]
H A Dvec_deque.rs1216 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1220 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1227 Err(CapacityOverflow), in test_try_reserve()
1234 Err(CapacityOverflow), in test_try_reserve()
1243 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1246 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1252 Err(CapacityOverflow), in test_try_reserve()
1259 Err(CapacityOverflow), in test_try_reserve()
1268 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
1272 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
[all …]
H A Dvec.rs1729 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1733 if let Err(CapacityOverflow) = empty_bytes.try_reserve(MAX_CAP).map_err(|e| e.kind()) { in test_try_reserve()
1740 Err(CapacityOverflow), in test_try_reserve()
1747 Err(CapacityOverflow), in test_try_reserve()
1756 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1759 if let Err(CapacityOverflow) = ten_bytes.try_reserve(MAX_CAP - 10).map_err(|e| e.kind()) { in test_try_reserve()
1765 Err(CapacityOverflow), in test_try_reserve()
1772 Err(CapacityOverflow), in test_try_reserve()
1781 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
1785 if let Err(CapacityOverflow) = ten_u32s.try_reserve(MAX_CAP / 4 - 10).map_err(|e| e.kind()) in test_try_reserve()
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/alloc/src/
H A Draw_vec.rs222 Err(_) => return Err(CapacityOverflow.into()), in try_allocate_in()
471 return Err(CapacityOverflow.into()); in grow_amortized()
475 let required_cap = len.checked_add(additional).ok_or(CapacityOverflow)?; in grow_amortized()
498 return Err(CapacityOverflow.into()); in grow_exact()
501 let cap = len.checked_add(additional).ok_or(CapacityOverflow)?; in grow_exact()
561 let new_layout = new_layout.map_err(|_| CapacityOverflow)?; in finish_grow()
593 CapacityOverflow => capacity_overflow(), in handle_error()
609 Err(CapacityOverflow.into()) in alloc_guard()
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/alloc/src/
H A Draw_vec.rs222 Err(_) => return Err(CapacityOverflow.into()), in try_allocate_in()
472 return Err(CapacityOverflow.into()); in grow_amortized()
476 let required_cap = len.checked_add(additional).ok_or(CapacityOverflow)?; in grow_amortized()
499 return Err(CapacityOverflow.into()); in grow_exact()
502 let cap = len.checked_add(additional).ok_or(CapacityOverflow)?; in grow_exact()
578 let new_layout = new_layout.map_err(|_| CapacityOverflow)?; in finish_grow()
610 CapacityOverflow => capacity_overflow(), in handle_error()
626 Err(CapacityOverflow.into()) in alloc_guard()
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/alloc/src/
H A Draw_vec.rs222 Err(_) => return Err(CapacityOverflow.into()), in try_allocate_in()
472 return Err(CapacityOverflow.into()); in grow_amortized()
476 let required_cap = len.checked_add(additional).ok_or(CapacityOverflow)?; in grow_amortized()
499 return Err(CapacityOverflow.into()); in grow_exact()
502 let cap = len.checked_add(additional).ok_or(CapacityOverflow)?; in grow_exact()
578 let new_layout = new_layout.map_err(|_| CapacityOverflow)?; in finish_grow()
610 CapacityOverflow => capacity_overflow(), in handle_error()
626 Err(CapacityOverflow.into()) in alloc_guard()
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/alloc/src/
H A Draw_vec.rs222 Err(_) => return Err(CapacityOverflow.into()), in try_allocate_in()
472 return Err(CapacityOverflow.into()); in grow_amortized()
476 let required_cap = len.checked_add(additional).ok_or(CapacityOverflow)?; in grow_amortized()
499 return Err(CapacityOverflow.into()); in grow_exact()
502 let cap = len.checked_add(additional).ok_or(CapacityOverflow)?; in grow_exact()
578 let new_layout = new_layout.map_err(|_| CapacityOverflow)?; in finish_grow()
610 CapacityOverflow => capacity_overflow(), in handle_error()
626 Err(CapacityOverflow.into()) in alloc_guard()
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/alloc/src/
H A Draw_vec.rs222 Err(_) => return Err(CapacityOverflow.into()), in try_allocate_in()
471 return Err(CapacityOverflow.into()); in grow_amortized()
475 let required_cap = len.checked_add(additional).ok_or(CapacityOverflow)?; in grow_amortized()
498 return Err(CapacityOverflow.into()); in grow_exact()
501 let cap = len.checked_add(additional).ok_or(CapacityOverflow)?; in grow_exact()
561 let new_layout = new_layout.map_err(|_| CapacityOverflow)?; in finish_grow()
593 CapacityOverflow => capacity_overflow(), in handle_error()
609 Err(CapacityOverflow.into()) in alloc_guard()
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/alloc/src/collections/
H A Dmod.rs89 CapacityOverflow, enumerator
126 TryReserveErrorKind::CapacityOverflow in from()
138 TryReserveErrorKind::CapacityOverflow => { in fmt()
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/alloc/src/collections/
H A Dmod.rs89 CapacityOverflow, enumerator
126 TryReserveErrorKind::CapacityOverflow in from()
138 TryReserveErrorKind::CapacityOverflow => { in fmt()
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/alloc/src/collections/
H A Dmod.rs89 CapacityOverflow, enumerator
126 TryReserveErrorKind::CapacityOverflow in from()
138 TryReserveErrorKind::CapacityOverflow => { in fmt()
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/alloc/src/collections/
H A Dmod.rs89 CapacityOverflow, enumerator
126 TryReserveErrorKind::CapacityOverflow in from()
138 TryReserveErrorKind::CapacityOverflow => { in fmt()
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/alloc/src/collections/
H A Dmod.rs89 CapacityOverflow, enumerator
126 TryReserveErrorKind::CapacityOverflow in from()
138 TryReserveErrorKind::CapacityOverflow => { in fmt()

123