Remove predicate note
This commit is contained in:
parent
b33955a0ef
commit
083bd7cb1d
1 changed files with 1 additions and 2 deletions
|
@ -2162,14 +2162,13 @@ impl<'a, 'tcx> InferCtxtPrivExt<'a, 'tcx> for InferCtxt<'a, 'tcx> {
|
||||||
}
|
}
|
||||||
let subst = data.substs.iter().find(|g| g.has_infer_types_or_consts());
|
let subst = data.substs.iter().find(|g| g.has_infer_types_or_consts());
|
||||||
if let Some(subst) = subst {
|
if let Some(subst) = subst {
|
||||||
let mut err = self.emit_inference_failure_err(
|
let err = self.emit_inference_failure_err(
|
||||||
body_id,
|
body_id,
|
||||||
span,
|
span,
|
||||||
subst,
|
subst,
|
||||||
ErrorCode::E0284,
|
ErrorCode::E0284,
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
err.note(&format!("cannot satisfy `{}`", predicate));
|
|
||||||
err
|
err
|
||||||
} else {
|
} else {
|
||||||
// If we can't find a substitution, just print a generic error
|
// If we can't find a substitution, just print a generic error
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue