about summary refs log tree commit diff
path: root/compiler/rustc_errors
diff options
context:
space:
mode:
authorxizheyin <xizheyin@smail.nju.edu.cn>2025-07-19 01:49:19 +0800
committerxizheyin <xizheyin@smail.nju.edu.cn>2025-07-19 01:49:19 +0800
commitc58e0bd09368a96dbde1ec1f30e36764e1431125 (patch)
treed21acf30fff278eeb13534eb08fb9dcc0a491771 /compiler/rustc_errors
parent82310651b93a594a3fd69015e1562186a080d94c (diff)
downloadrust-c58e0bd09368a96dbde1ec1f30e36764e1431125.tar.gz
rust-c58e0bd09368a96dbde1ec1f30e36764e1431125.zip
rename `emit_unless` to `emit_unless_delay`
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
Diffstat (limited to 'compiler/rustc_errors')
-rw-r--r--compiler/rustc_errors/src/diagnostic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/diagnostic.rs b/compiler/rustc_errors/src/diagnostic.rs
index a128f8d31a1..96c7ba6ed27 100644
--- a/compiler/rustc_errors/src/diagnostic.rs
+++ b/compiler/rustc_errors/src/diagnostic.rs
@@ -1421,7 +1421,7 @@ impl<'a, G: EmissionGuarantee> Diag<'a, G> {
     ///
     /// See `emit` and `delay_as_bug` for details.
     #[track_caller]
-    pub fn emit_unless(mut self, delay: bool) -> G::EmitResult {
+    pub fn emit_unless_delay(mut self, delay: bool) -> G::EmitResult {
         if delay {
             self.downgrade_to_delayed_bug();
         }