diff options
| author | Michael Goulet <michael@errs.io> | 2022-06-25 09:28:27 -0700 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-07-01 17:38:34 +0000 |
| commit | ca0105ba4e3c846f3d3e25705a401db949c8dd40 (patch) | |
| tree | bb0affcaa34c0d160b48826c73117f4e3f509060 /compiler/rustc_trait_selection/src/traits | |
| parent | f44ae98ceec2361a47e8822a8f5018d4443018ea (diff) | |
| download | rust-ca0105ba4e3c846f3d3e25705a401db949c8dd40.tar.gz rust-ca0105ba4e3c846f3d3e25705a401db949c8dd40.zip | |
Show source of ambiguity in a few more places
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs index b5256433306..00b4d0857ac 100644 --- a/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs @@ -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 |
