Skip to content

Commit 2e261a8

Browse files
committed
add struct_warn method
1 parent 530f4dc commit 2e261a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_session/src/parse.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,4 +303,8 @@ impl ParseSess {
303303
) -> DiagnosticBuilder<'_, ErrorGuaranteed> {
304304
self.span_diagnostic.struct_err(msg)
305305
}
306+
307+
pub fn struct_warn(&self, msg: impl Into<DiagnosticMessage>) -> DiagnosticBuilder<'_, ()> {
308+
self.span_diagnostic.struct_warn(msg)
309+
}
306310
}

0 commit comments

Comments
 (0)