1
Fork 0

Rename unchecked_claim_error_was_emitted as unchecked_error_guaranteed.

It's more to-the-point.
This commit is contained in:
Nicholas Nethercote 2024-02-07 19:30:59 +11:00
parent 97c157fe1e
commit 6889fe3806
2 changed files with 6 additions and 6 deletions

View file

@ -2479,7 +2479,7 @@ pub struct ErrorGuaranteed(());
impl ErrorGuaranteed {
/// Don't use this outside of `DiagCtxtInner::emit_diagnostic`!
#[deprecated = "should only be used in `DiagCtxtInner::emit_diagnostic`"]
pub fn unchecked_claim_error_was_emitted() -> Self {
pub fn unchecked_error_guaranteed() -> Self {
ErrorGuaranteed(())
}
}