Rollup merge of #131835 - ferrocene:amanjeev/add-missing-attribute-unwind, r=Noratrieb

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
This commit is contained in:
Matthias Krüger 2024-10-17 20:47:32 +02:00 committed by GitHub
commit e46d52ccda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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!());