Skip to content

Commit 1e92223

Browse files
committed
Remove unused DiagnosticBuilder::struct_almost_fatal.
`create_almost_fatal` and `emit_almost_fatal` are always used instead.
1 parent b4a6239 commit 1e92223

File tree

1 file changed

+0
-10
lines changed
  • compiler/rustc_errors/src

1 file changed

+0
-10
lines changed

compiler/rustc_errors/src/lib.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -878,16 +878,6 @@ impl DiagCtxt {
878878
DiagnosticBuilder::new(self, Fatal, msg)
879879
}
880880

881-
/// Construct a builder at the `Fatal` level with the `msg`, that doesn't abort.
882-
#[rustc_lint_diagnostics]
883-
#[track_caller]
884-
pub fn struct_almost_fatal(
885-
&self,
886-
msg: impl Into<DiagnosticMessage>,
887-
) -> DiagnosticBuilder<'_, FatalError> {
888-
DiagnosticBuilder::new(self, Fatal, msg)
889-
}
890-
891881
/// Construct a builder at the `Help` level with the `msg`.
892882
#[rustc_lint_diagnostics]
893883
pub fn struct_help(&self, msg: impl Into<DiagnosticMessage>) -> DiagnosticBuilder<'_, ()> {

0 commit comments

Comments
 (0)