Skip to content

Commit

Permalink
Rollup merge of rust-lang#131835 - ferrocene:amanjeev/add-missing-att…
Browse files Browse the repository at this point in the history
…ribute-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
  • Loading branch information
matthiaskrgr authored Oct 17, 2024
2 parents bac74b6 + 34c8228 commit 0ab703c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/tests/lazy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!());
Expand Down

0 comments on commit 0ab703c

Please sign in to comment.