add struct_warn method

This commit is contained in:
Christian Poveda 2022-04-25 23:49:53 +02:00
parent 530f4dce29
commit 2e261a82f3
No known key found for this signature in database
GPG key ID: 27525EF5E7420A50

View file

@ -303,4 +303,8 @@ impl ParseSess {
) -> DiagnosticBuilder<'_, ErrorGuaranteed> {
self.span_diagnostic.struct_err(msg)
}
pub fn struct_warn(&self, msg: impl Into<DiagnosticMessage>) -> DiagnosticBuilder<'_, ()> {
self.span_diagnostic.struct_warn(msg)
}
}