1
Fork 0

Show source of ambiguity in a few more places

This commit is contained in:
Michael Goulet 2022-06-25 09:28:27 -07:00
parent f44ae98cee
commit ca0105ba4e
15 changed files with 35 additions and 20 deletions

View file

@ -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