Uplift ClosureKind

This commit is contained in:
Michael Goulet 2023-12-12 18:54:49 +00:00
parent 835ed0021e
commit b8ea6e686f
7 changed files with 107 additions and 76 deletions

View file

@ -378,3 +378,9 @@ pub struct IndicateAnonymousLifetime {
pub count: usize,
pub suggestion: String,
}
impl IntoDiagnosticArg for type_ir::ClosureKind {
fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static> {
DiagnosticArgValue::Str(self.as_str().into())
}
}