Post

Finding panics with Call Graph Analyzer

Tweede golf and Microsoft have released a Rust Call Graph Analyzer that walks monomorphized MIR to find reachable panic paths, including paths through dependencies and the standard library. That gives it broader visibility than source-level checks, and the tool can also report calls to blacklisted functions.

The authors are explicit about trade-offs: CGA needs a matching nightly rustc and build-std, can be fragile as MIR changes, runs roughly 2–3 times slower than cargo check, and can report panic paths that optimization later removes. It is a useful analysis aid, not a proof that a binary will panic—or that it cannot.

The article’s main discussion of limitations and use cases is in the source write-up; the linked Lobsters item had no comments when checked.