1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
use crate::*;
use ::core::fmt;
pub use ::core::panicking::*;
use ::std::any::Any;

extern_spec! {
    mod core {
        mod panicking {
            #[pure]
            #[requires(false)]
            fn panic(expr: &'static str) -> !;

            #[pure]
            #[requires(false)]
            fn panic_explicit() -> !;

            #[pure]
            #[requires(false)]
            fn panic_display<T: fmt::Display>(x: &T) -> !;

            #[pure]
            #[requires(false)]
            fn panic_fmt(fmt: fmt::Arguments<'_>) -> !;

            #[pure]
            #[requires(false)]
            fn panic_nounwind(expr: &'static str) -> !;

            #[pure]
            #[requires(false)]
            fn panic_nounwind_fmt(fmt: fmt::Arguments<'_>, force_no_backtrace: bool) -> !;

            #[pure]
            #[requires(false)]
            fn panic_nounwind_nobacktrace(expr: &'static str) -> !;

            #[pure]
            #[requires(false)]
            fn unreachable_display<T: fmt::Display>(x: &T) -> !;

            #[pure]
            #[requires(false)]
            fn assert_failed<T, U>(kind: AssertKind, left: &T, right: &U, args: Option<fmt::Arguments<'_>>) -> !
            where
                T: fmt::Debug + ?Sized,
                U: fmt::Debug + ?Sized;

        }
    }

    mod std {
        mod rt {
            #[pure]
            #[requires(false)]
            fn begin_panic<M: Any + Send>(msg: M) -> !;
        }
    }
}