MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / drop

Method drop

src/function.rs:272–276  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

270
271impl<'a> Drop for AbortOnDrop<'a> {
272 fn drop(&mut self) {
273 use std::io::Write;
274 let _ = writeln!(&mut io::stderr(), "Cannot unwind out of {}", self.0);
275 unsafe { libc::abort() }
276 }
277}
278
279// Tests for this file are in tests/test_function.rs

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected