about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-04-20 21:45:34 +0100
committerGitHub <noreply@github.com>2024-04-20 21:45:34 +0100
commite9e936cfa8dfdd1b7320a219316b6bd6dbccf300 (patch)
treec340f7b5b6aa2d08191d27b92eaba7d74bb3cc9a /compiler/rustc_errors/src
parent54692c3d0b873a5dc055f2f35081d0d6a2410a49 (diff)
parentbe564a8add9b05624274af0d729afdb16674a97d (diff)
downloadrust-e9e936cfa8dfdd1b7320a219316b6bd6dbccf300.tar.gz
rust-e9e936cfa8dfdd1b7320a219316b6bd6dbccf300.zip
Rollup merge of #123379 - wutchzone:119266, r=compiler-errors
Print note with closure signature on type mismatch

Fixes #119266

r? Nilstrieb
Diffstat (limited to 'compiler/rustc_errors/src')
-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
     }