Re:Prusti: Static Analyzer for Rust
by Ericson2314 on Thursday October 13, 2022 @11:49AM
(#33192655)
You are overthinking things. Those are just usee to mark places in the control flow it tries to proove are unreachable. The meaning of those constructs is irrelevant.
[ Parent
| on HN ]
Re:Prusti: Static Analyzer for Rust
by hn92726819 on Thursday October 13, 2022 @11:57AM
(#33192775)
I think they're talking about literal panic!() calls though. They used parenthesis in their examples too, which indicates they're probably talking about the macro calls.
This is a static analyzer so I would expect it can trace calls to a panic handler (which both panic! and unreachable! use). I might be overthinking things, but it looks to me like this may be able to detect panic! calls even in, say, stdlib