about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-01-04 07:55:59 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-01-04 07:55:59 +1100
commit1e922239256348270dd58fc72a24ad0972ddafe4 (patch)
tree559b2ed3e140be4fe15cb648b1b3c3408027f26e /compiler/rustc_errors/src
parentb4a62399840d61c56081e7378220d65e183a00fb (diff)
downloadrust-1e922239256348270dd58fc72a24ad0972ddafe4.tar.gz
rust-1e922239256348270dd58fc72a24ad0972ddafe4.zip
Remove unused `DiagnosticBuilder::struct_almost_fatal`.
`create_almost_fatal` and `emit_almost_fatal` are always used instead.
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/lib.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index 6dc3a8cd08e..a4b31748e85 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -878,16 +878,6 @@ impl DiagCtxt {
         DiagnosticBuilder::new(self, Fatal, msg)
     }
 
-    /// Construct a builder at the `Fatal` level with the `msg`, that doesn't abort.
-    #[rustc_lint_diagnostics]
-    #[track_caller]
-    pub fn struct_almost_fatal(
-        &self,
-        msg: impl Into<DiagnosticMessage>,
-    ) -> DiagnosticBuilder<'_, FatalError> {
-        DiagnosticBuilder::new(self, Fatal, msg)
-    }
-
     /// Construct a builder at the `Help` level with the `msg`.
     #[rustc_lint_diagnostics]
     pub fn struct_help(&self, msg: impl Into<DiagnosticMessage>) -> DiagnosticBuilder<'_, ()> {