Skip to content

Commit

Permalink
Fix ui test for updated core::panic behaviour.
Browse files Browse the repository at this point in the history
It now throws a &str instead of a String.
  • Loading branch information
m-ou-se committed Oct 19, 2020
1 parent 2780e35 commit 9890217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/ui/intrinsics/panic-uninitialized-zeroed.rs
Expand Up @@ -53,8 +53,8 @@ enum LR_NonZero {
fn test_panic_msg<T>(op: impl (FnOnce() -> T) + panic::UnwindSafe, msg: &str) {
let err = panic::catch_unwind(op).err();
assert_eq!(
err.as_ref().and_then(|a| a.downcast_ref::<String>()).map(|s| &**s),
Some(msg)
err.as_ref().and_then(|a| a.downcast_ref::<&str>()),
Some(&msg)
);
}

Expand Down

0 comments on commit 9890217

Please sign in to comment.