about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-02-07 19:30:59 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-02-07 19:30:59 +1100
commit6889fe3806fa44addca89193e5c45ced8c7f532d (patch)
tree73ee1b597d6099e7af1af7ac7a6603c6c0b94b8a /compiler/rustc_span/src
parent97c157fe1e52eeabe14a64865b4731794a23393a (diff)
downloadrust-6889fe3806fa44addca89193e5c45ced8c7f532d.tar.gz
rust-6889fe3806fa44addca89193e5c45ced8c7f532d.zip
Rename `unchecked_claim_error_was_emitted` as `unchecked_error_guaranteed`.
It's more to-the-point.
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_span/src/lib.rs b/compiler/rustc_span/src/lib.rs
index 1a1e1de6734..bcf04a71ae2 100644
--- a/compiler/rustc_span/src/lib.rs
+++ b/compiler/rustc_span/src/lib.rs
@@ -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(())
     }
 }