| 68 | |
| 69 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
| 70 | pub enum PanicInstance<'tcx> { |
| 71 | ResultUnwrap(Instance<'tcx>), |
| 72 | ResultExpect(Instance<'tcx>), |
| 73 | OptionUnwrap(Instance<'tcx>), |
| 74 | OptionExpect(Instance<'tcx>), |
| 75 | PanicFmt(Instance<'tcx>), |
| 76 | AssertFailed(Instance<'tcx>), |
| 77 | Panic(Instance<'tcx>), |
| 78 | } |
| 79 | |
| 80 | impl<'tcx> PanicInstance<'tcx> { |
| 81 | fn new(instance: Instance<'tcx>, tcx: TyCtxt<'tcx>) -> Option<Self> { |
nothing calls this directly
no outgoing calls
no test coverage detected