diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-04-20 21:45:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-20 21:45:34 +0100 |
| commit | e9e936cfa8dfdd1b7320a219316b6bd6dbccf300 (patch) | |
| tree | c340f7b5b6aa2d08191d27b92eaba7d74bb3cc9a /compiler/rustc_errors | |
| parent | 54692c3d0b873a5dc055f2f35081d0d6a2410a49 (diff) | |
| parent | be564a8add9b05624274af0d729afdb16674a97d (diff) | |
| download | rust-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')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic.rs | 2 |
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 } |
