Print note with closure signature on type mismatch
This commit is contained in:
parent
13e63f7490
commit
be564a8add
4 changed files with 48 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue