MCPcopy Create free account
hub / github.com/CodeSentryAI/lockbud / detect

Method detect

src/detector/panic/mod.rs:127–131  ·  view source on GitHub ↗
(&mut self, instance: Instance<'tcx>)

Source from the content-addressed store, hash-verified

125 }
126 }
127 pub fn detect(&mut self, instance: Instance<'tcx>) {
128 if let Some(mut panic_finder) = PanicFinder::new(instance, self.tcx) {
129 self.result.extend(panic_finder.detect());
130 }
131 }
132 pub fn result(&self) -> &HashMap<(DefId, Location), (Span, Span, PanicInstance<'tcx>)> {
133 &self.result
134 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected