about summary refs log tree commit diff
path: root/compiler/rustc_errors
diff options
context:
space:
mode:
authorDaniel Sedlak <daniel@sedlak.dev>2024-04-02 19:53:13 +0200
committerDaniel Sedlak <daniel@sedlak.dev>2024-04-20 15:48:27 +0200
commitbe564a8add9b05624274af0d729afdb16674a97d (patch)
tree5952dcceb8ae06804b0b516808a3228b4cfb78dc /compiler/rustc_errors
parent13e63f7490109eecf905fa51190eacbe8051aefd (diff)
downloadrust-be564a8add9b05624274af0d729afdb16674a97d.tar.gz
rust-be564a8add9b05624274af0d729afdb16674a97d.zip
Print note with closure signature on type mismatch
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 5d345e788e9..a17e0da47a5 100644
--- a/compiler/rustc_errors/src/diagnostic.rs
+++ b/compiler/rustc_errors/src/diagnostic.rs
@@ -730,7 +730,7 @@ impl<'a, G: EmissionGuarantee> Diag<'a, G> {
     } }
 
     #[rustc_lint_diagnostics]
-    fn highlighted_note(&mut self, msg: Vec<StringPart>) -> &mut Self {
+    pub fn highlighted_note(&mut self, msg: Vec<StringPart>) -> &mut Self {
         self.sub_with_highlights(Level::Note, msg, MultiSpan::new());
         self
     }