Skip to content

Commit 083bd7c

Browse files
committed
Remove predicate note
1 parent b33955a commit 083bd7c

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_trait_selection/src/traits/error_reporting

1 file changed

+1
-2
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -2162,14 +2162,13 @@ impl<'a, 'tcx> InferCtxtPrivExt<'a, 'tcx> for InferCtxt<'a, 'tcx> {
21622162
}
21632163
let subst = data.substs.iter().find(|g| g.has_infer_types_or_consts());
21642164
if let Some(subst) = subst {
2165-
let mut err = self.emit_inference_failure_err(
2165+
let err = self.emit_inference_failure_err(
21662166
body_id,
21672167
span,
21682168
subst,
21692169
ErrorCode::E0284,
21702170
true,
21712171
);
2172-
err.note(&format!("cannot satisfy `{}`", predicate));
21732172
err
21742173
} else {
21752174
// If we can't find a substitution, just print a generic error

0 commit comments

Comments
 (0)