Skip to content

Commit 9890217

Browse files
committed
Fix ui test for updated core::panic behaviour.
It now throws a &str instead of a String.
1 parent 2780e35 commit 9890217

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/ui/intrinsics/panic-uninitialized-zeroed.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ enum LR_NonZero {
5353
fn test_panic_msg<T>(op: impl (FnOnce() -> T) + panic::UnwindSafe, msg: &str) {
5454
let err = panic::catch_unwind(op).err();
5555
assert_eq!(
56-
err.as_ref().and_then(|a| a.downcast_ref::<String>()).map(|s| &**s),
57-
Some(msg)
56+
err.as_ref().and_then(|a| a.downcast_ref::<&str>()),
57+
Some(&msg)
5858
);
5959
}
6060

0 commit comments

Comments
 (0)