{"ast_node_type":"function","tokens":[{"end":82,"kind":"keyword","start":0,"text":"fn"}]}
fn detect_discriminant_duplicate<'tcx>(tcx: TyCtxt<'tcx>, adt: ty::AdtDef<'tcx>) {
/// Part of enum check. Given the discriminants of an enum, errors if two or more discriminants are equal
    // Helper closure to reduce duplicate code. This gets called everytime we detect a duplicate.