{"ast_node_type":"function","tokens":[{"end":66,"kind":"keyword","start":0,"text":"pub"}]}
    pub fn variant_with_id(self, vid: DefId) -> &'tcx VariantDef {
    /// Return a `VariantDef` given a variant id.
        self.variants().iter().find(|v| v.def_id == vid).expect("variant_with_id: unknown variant")