1
Fork 0

Match end user facing unmatched backticks in compiler/

This commit is contained in:
est31 2023-03-03 08:38:07 +01:00
parent 13471d3b20
commit ef658907a5
13 changed files with 19 additions and 19 deletions

View file

@ -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);
};