Skip to content

Commit 8562752

Browse files
committed
Revert "Highlight is in the message for emphasis"
This reverts commit a6301ca.
1 parent 9381d9c commit 8562752

File tree

1 file changed

+4
-3
lines changed
  • compiler/rustc_trait_selection/src/traits/error_reporting

1 file changed

+4
-3
lines changed

compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,11 +1772,12 @@ impl<'a, 'tcx> InferCtxtPrivExt<'a, 'tcx> for InferCtxt<'a, 'tcx> {
17721772
if candidates.len() == 1 {
17731773
err.highlighted_help(vec![
17741774
(
1775-
format!("the trait `{}` ", candidates[0].print_only_trait_path()),
1775+
format!(
1776+
"the trait `{}` is implemented for `",
1777+
candidates[0].print_only_trait_path()
1778+
),
17761779
Style::NoStyle,
17771780
),
1778-
("is".to_string(), Style::Highlight),
1779-
(" implemented for `".to_string(), Style::NoStyle),
17801781
(candidates[0].self_ty().to_string(), Style::Highlight),
17811782
("`".to_string(), Style::NoStyle),
17821783
]);

0 commit comments

Comments
 (0)