Highlight is
in the message for emphasis
This commit is contained in:
parent
3109c931b4
commit
a6301cab5e
@ -1766,12 +1766,11 @@ impl<'a, 'tcx> InferCtxtPrivExt<'a, 'tcx> for InferCtxt<'a, 'tcx> {
|
||||
if candidates.len() == 1 {
|
||||
err.highlighted_help(vec![
|
||||
(
|
||||
format!(
|
||||
"the trait `{}` is implemented for `",
|
||||
candidates[0].print_only_trait_path()
|
||||
),
|
||||
format!("the trait `{}` ", candidates[0].print_only_trait_path()),
|
||||
Style::NoStyle,
|
||||
),
|
||||
("is".to_string(), Style::Highlight),
|
||||
(" implemented for `".to_string(), Style::NoStyle),
|
||||
(candidates[0].self_ty().to_string(), Style::Highlight),
|
||||
("`".to_string(), Style::NoStyle),
|
||||
]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user