Remove unused DiagnosticBuilder::struct_almost_fatal
.
`create_almost_fatal` and `emit_almost_fatal` are always used instead.
This commit is contained in:
parent
b4a6239984
commit
1e92223925
1 changed files with 0 additions and 10 deletions
|
@ -878,16 +878,6 @@ impl DiagCtxt {
|
||||||
DiagnosticBuilder::new(self, Fatal, msg)
|
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`.
|
/// Construct a builder at the `Help` level with the `msg`.
|
||||||
#[rustc_lint_diagnostics]
|
#[rustc_lint_diagnostics]
|
||||||
pub fn struct_help(&self, msg: impl Into<DiagnosticMessage>) -> DiagnosticBuilder<'_, ()> {
|
pub fn struct_help(&self, msg: impl Into<DiagnosticMessage>) -> DiagnosticBuilder<'_, ()> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue