rustc_mir_build::lints

Trait TerminatorClassifier

Source
trait TerminatorClassifier<'tcx> {
    // Required method
    fn is_recursive_terminator(
        &self,
        tcx: TyCtxt<'tcx>,
        body: &Body<'tcx>,
        terminator: &Terminator<'tcx>,
    ) -> bool;
}

Required Methods§

Source

fn is_recursive_terminator( &self, tcx: TyCtxt<'tcx>, body: &Body<'tcx>, terminator: &Terminator<'tcx>, ) -> bool

Implementors§

Source§

impl<'tcx> TerminatorClassifier<'tcx> for CallRecursion<'tcx>

Source§

impl<'tcx> TerminatorClassifier<'tcx> for RecursiveDrop<'tcx>