]> git.proxmox.com Git - rustc.git/blob - vendor/backtrace/src/backtrace/noop.rs
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / vendor / backtrace / src / backtrace / noop.rs
1 //! Empty implementation of unwinding used when no other implementation is
2 //! appropriate.
3
4 use core::ffi::c_void;
5
6 #[inline(always)]
7 pub fn trace(_cb: &mut dyn FnMut(&super::Frame) -> bool) {}
8
9 #[derive(Clone)]
10 pub struct Frame;
11
12 impl Frame {
13 pub fn ip(&self) -> *mut c_void {
14 0 as *mut _
15 }
16
17 pub fn sp(&self) -> *mut c_void {
18 0 as *mut _
19 }
20
21 pub fn symbol_address(&self) -> *mut c_void {
22 0 as *mut _
23 }
24 }