Skip to content

Commit 0ab703c

Browse files
authored
Rollup merge of rust-lang#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
2 parents bac74b6 + 34c8228 commit 0ab703c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/tests/lazy.rs

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ fn lazy_type_inference() {
114114
}
115115

116116
#[test]
117+
#[cfg(panic = "unwind")]
117118
#[should_panic = "LazyCell instance has previously been poisoned"]
118119
fn lazy_force_mut_panic() {
119120
let mut lazy = LazyCell::<String>::new(|| panic!());

0 commit comments

Comments
 (0)