Match end user facing unmatched backticks in compiler/
This commit is contained in:
parent
13471d3b20
commit
ef658907a5
13 changed files with 19 additions and 19 deletions
|
@ -1690,7 +1690,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
|
|||
format!("{name} is defined in the current crate")
|
||||
} else {
|
||||
let crate_name = self.tcx.crate_name(defid.krate);
|
||||
format!("{name} is defined in crate `{crate_name}")
|
||||
format!("{name} is defined in crate `{crate_name}`")
|
||||
};
|
||||
diagnostic.span_note(def_span, msg);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue