Function peel_hir_ty_options

Source
pub fn peel_hir_ty_options<'tcx>(
    cx: &LateContext<'tcx>,
    hir_ty: &'tcx Ty<'tcx>,
) -> &'tcx Ty<'tcx>
Expand description

Peel Option<…> from hir_ty as long as the HIR name is Option and it corresponds to the core::Option<_> type.