diff options
| author | Amanjeev Sethi <aj@amanjeev.com> | 2024-10-17 09:33:39 -0400 |
|---|---|---|
| committer | Amanjeev Sethi <aj@amanjeev.com> | 2024-10-17 09:33:39 -0400 |
| commit | f999ab86e05431a7e7d109e9bfde991d8817f98b (patch) | |
| tree | 60dc94949f6362fddffb836599a5b1d82fcfe202 | |
| parent | 06d261daf62620e3449ba451898c7ad9ae750f41 (diff) | |
| download | rust-f999ab86e05431a7e7d109e9bfde991d8817f98b.tar.gz rust-f999ab86e05431a7e7d109e9bfde991d8817f98b.zip | |
Do not run test where it cannot run
This was seen on Ferrocene, where we have a custom test target that does not have unwind support
| -rw-r--r-- | library/core/tests/lazy.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/tests/lazy.rs b/library/core/tests/lazy.rs index 711511eaf4a..32d0ac51f03 100644 --- a/library/core/tests/lazy.rs +++ b/library/core/tests/lazy.rs @@ -114,6 +114,7 @@ fn lazy_type_inference() { } #[test] +#[cfg(panic = "unwind")] #[should_panic = "LazyCell instance has previously been poisoned"] fn lazy_force_mut_panic() { let mut lazy = LazyCell::<String>::new(|| panic!()); |
