Skip to content

Commit

Permalink
Unrolled build for rust-lang#131835
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rust-timer authored Oct 17, 2024
2 parents 86bd459 + f999ab8 commit dbc933e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/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 dbc933e

Please sign in to comment.