add struct_warn
method
This commit is contained in:
parent
530f4dce29
commit
2e261a82f3
1 changed files with 4 additions and 0 deletions
|
@ -303,4 +303,8 @@ impl ParseSess {
|
||||||
) -> DiagnosticBuilder<'_, ErrorGuaranteed> {
|
) -> DiagnosticBuilder<'_, ErrorGuaranteed> {
|
||||||
self.span_diagnostic.struct_err(msg)
|
self.span_diagnostic.struct_err(msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn struct_warn(&self, msg: impl Into<DiagnosticMessage>) -> DiagnosticBuilder<'_, ()> {
|
||||||
|
self.span_diagnostic.struct_warn(msg)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue