Closed stoneman258 closed 1 month ago
I encountered an FP panic warning when usinglockbud` in my crate. The minmized code example is listed below. It seems lockbud adopts regular expression to recognize panic, which can easily lead to false positives (e.g., Link).
panic warning when using
fn main() { to_panic_report(); } fn to_panic_report() { println!("..."); // ... }
cargo lockbud -k panic
PANIC[testa#0]: (DefId(0:3 ~ testa[3645]::main), bb0[0]): span[src/main.rs:2:5: 2:22 (#0)], outermost_span[src/main.rs:1:1: 3:2 (#0)], Panic(Instance { def: Item(DefId(0:4 ~ testa[3645]::to_panic_report)), args: [] }) testa: Panic: 1
Lockbud report a wrong panic warning.
panic
Thanks I will fix it ASAP.
Fixed in https://github.com/BurtonQin/lockbud/commit/07ff4ad2c2d68a8f3d04e56c31ef2504f3462c87
Description
I encountered an FP
panic warning when using
lockbud` in my crate. The minmized code example is listed below. It seems lockbud adopts regular expression to recognize panic, which can easily lead to false positives (e.g., Link).Case
Command
Result
Lockbud report a wrong
panic
warning.