[][src]Function rustc_mir::hair::pattern::_match::constructor_intersects_pattern

fn constructor_intersects_pattern<'p, 'a: 'p, 'tcx: 'a>(
    tcx: TyCtxt<'a, 'tcx, 'tcx>,
    ctor: &Constructor<'tcx>,
    pat: &'p Pattern<'tcx>
) -> Option<Vec<&'p Pattern<'tcx>>>
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Check whether there exists any shared value in either ctor or pat by intersecting them.