fn variant_ident<F: Serialize>(func: &F) -> String
The serde variant name, which is what the stable LIR format stores.