about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/lib.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-11-30 14:04:52 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-02 08:58:25 +1100
commit7138845f61ee8eb212158fd4b66276e34e733db1 (patch)
treea1824cb3bd1d1d0bfc62d977eee0aa9d461d9e0e /compiler/rustc_errors/src/lib.rs
parent95be8b21896c748543a81135177e6e3286ae21f2 (diff)
downloadrust-7138845f61ee8eb212158fd4b66276e34e733db1.tar.gz
rust-7138845f61ee8eb212158fd4b66276e34e733db1.zip
Rename `Handler::span_note_diag` as `struct_span_note`.
Because `span_note_diag` doesn't follow the naming structure used for
the error reporting functions.
Diffstat (limited to 'compiler/rustc_errors/src/lib.rs')
-rw-r--r--compiler/rustc_errors/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index 6e913282c59..9f2e5d81797 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -1032,7 +1032,7 @@ impl Handler {
 
     #[track_caller]
     #[rustc_lint_diagnostics]
-    pub fn span_note_diag(
+    pub fn struct_span_note(
         &self,
         span: Span,
         msg: impl Into<DiagnosticMessage>,