We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
struct_warn
1 parent 530f4dc commit 2e261a8Copy full SHA for 2e261a8
compiler/rustc_session/src/parse.rs
@@ -303,4 +303,8 @@ impl ParseSess {
303
) -> DiagnosticBuilder<'_, ErrorGuaranteed> {
304
self.span_diagnostic.struct_err(msg)
305
}
306
+
307
+ pub fn struct_warn(&self, msg: impl Into<DiagnosticMessage>) -> DiagnosticBuilder<'_, ()> {
308
+ self.span_diagnostic.struct_warn(msg)
309
+ }
310
0 commit comments