diff options
| -rw-r--r-- | compiler/rustc_session/src/parse.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/parse.rs b/compiler/rustc_session/src/parse.rs index dd7682ebace..e933fe1cb24 100644 --- a/compiler/rustc_session/src/parse.rs +++ b/compiler/rustc_session/src/parse.rs @@ -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) + } } |
