mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-30 16:43:41 +00:00
Rollup merge of #125927 - ferrocene:lw-alloc-unwind-test, r=pietroalbini
Ignore `vec_deque_alloc_error::test_shrink_to_unwind` test on non-unwind targets https://github.com/rust-lang/rust/pull/123803 added this test which requires unwinding to succeed. This conditionally ignores the test on non-unwind targets (as is the case with other tests using `catch_unwind`).
This commit is contained in:
commit
d9e149d9d8
@ -8,6 +8,7 @@ use std::{
|
||||
};
|
||||
|
||||
#[test]
|
||||
#[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")]
|
||||
fn test_shrink_to_unwind() {
|
||||
// This tests that `shrink_to` leaves the deque in a consistent state when
|
||||
// the call to `RawVec::shrink_to_fit` unwinds. The code is adapted from #123369
|
||||
|
Loading…
Reference in New Issue
Block a user