Function rustc_pattern_analysis::usefulness::collect_pattern_usefulness
source ยท fn collect_pattern_usefulness<'p, Cx: PatCx>(
useful_subpatterns: &FxHashSet<PatId>,
pat: &'p DeconstructedPat<Cx>,
) -> Usefulness<'p, Cx>
Expand description
Report whether this pattern was found useful, and its subpatterns that were not useful if any.