rustc_mir_build::thir::pattern

Function pat_from_hir

Source
pub(super) fn pat_from_hir<'a, 'tcx>(
    tcx: TyCtxt<'tcx>,
    typing_env: TypingEnv<'tcx>,
    typeck_results: &'a TypeckResults<'tcx>,
    pat: &'tcx Pat<'tcx>,
) -> Box<Pat<'tcx>>