(panic: Box<dyn std::any::Any>)
| 915 | } |
| 916 | |
| 917 | fn get_panic_string(panic: Box<dyn std::any::Any>) -> String { |
| 918 | let panic = match panic.downcast::<&'static str>() { |
| 919 | Ok(panic_msg) => { |
| 920 | return panic_msg.to_string(); |
| 921 | } |
| 922 | Err(panic) => panic, |
| 923 | }; |
| 924 | match panic.downcast::<String>() { |
| 925 | Ok(panic_msg) => *panic_msg, |
| 926 | Err(_) => "Box<Any>".to_string(), |
| 927 | } |
| 928 | } |
| 929 | |
| 930 | enum CheckResult { |
| 931 | /// The function compiled fine, or the verifier noticed an error. |
no test coverage detected