Show source of ambiguity in a few more places
This commit is contained in:
parent
f44ae98cee
commit
ca0105ba4e
15 changed files with 35 additions and 20 deletions
|
@ -2020,7 +2020,7 @@ impl<'a, 'tcx> InferCtxtPrivExt<'a, 'tcx> for InferCtxt<'a, 'tcx> {
|
|||
subst,
|
||||
impl_candidates,
|
||||
ErrorCode::E0283,
|
||||
false,
|
||||
true,
|
||||
);
|
||||
|
||||
let obligation = Obligation::new(
|
||||
|
@ -2132,7 +2132,7 @@ impl<'a, 'tcx> InferCtxtPrivExt<'a, 'tcx> for InferCtxt<'a, 'tcx> {
|
|||
a.into(),
|
||||
vec![],
|
||||
ErrorCode::E0282,
|
||||
false,
|
||||
true,
|
||||
)
|
||||
}
|
||||
ty::PredicateKind::Projection(data) => {
|
||||
|
@ -2149,7 +2149,7 @@ impl<'a, 'tcx> InferCtxtPrivExt<'a, 'tcx> for InferCtxt<'a, 'tcx> {
|
|||
self_ty.into(),
|
||||
vec![],
|
||||
ErrorCode::E0284,
|
||||
false,
|
||||
true,
|
||||
);
|
||||
err.note(&format!("cannot satisfy `{}`", predicate));
|
||||
err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue