Remove EarlyDiagCtxt::abort_if_errors
.
Its one use isn't necessary, because it's not possible for errors to have been emitted at that point.
This commit is contained in:
parent
203b4332bb
commit
9919c3dab3
2 changed files with 2 additions and 7 deletions
|
@ -1410,10 +1410,6 @@ impl EarlyDiagCtxt {
|
|||
Self { dcx: DiagCtxt::with_emitter(emitter) }
|
||||
}
|
||||
|
||||
pub fn abort_if_errors(&self) {
|
||||
self.dcx.abort_if_errors()
|
||||
}
|
||||
|
||||
/// Swap out the underlying dcx once we acquire the user's preference on error emission
|
||||
/// format. Any errors prior to that will cause an abort and all stashed diagnostics of the
|
||||
/// previous dcx will be emitted.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue