Rollup merge of #77155 - lcnr:ImplSource, r=ecstatic-morse
remove enum name from ImplSource variants This is quite a lot cleaner in my opinion.
This commit is contained in:
commit
e739468f97
8 changed files with 104 additions and 110 deletions
|
@ -1306,7 +1306,7 @@ impl<'a, 'tcx> ProbeContext<'a, 'tcx> {
|
|||
.at(&ObligationCause::dummy(), self.param_env)
|
||||
.sup(candidate.xform_self_ty, self_ty);
|
||||
match self.select_trait_candidate(trait_ref) {
|
||||
Ok(Some(traits::ImplSource::ImplSourceUserDefined(ref impl_data))) => {
|
||||
Ok(Some(traits::ImplSource::UserDefined(ref impl_data))) => {
|
||||
// If only a single impl matches, make the error message point
|
||||
// to that impl.
|
||||
ImplSource(impl_data.impl_def_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue