Fix rebase
This commit is contained in:
parent
852073a7d2
commit
27534b3932
4 changed files with 16 additions and 10 deletions
|
@ -916,8 +916,8 @@ fn assemble_candidates_from_object_ty<'cx, 'tcx>(
|
|||
|
||||
let self_ty = obligation_trait_ref.self_ty();
|
||||
let object_ty = selcx.infcx().shallow_resolve(self_ty);
|
||||
let data = match object_ty.kind {
|
||||
ty::Dynamic(ref data, ..) => data,
|
||||
let data = match object_ty.kind() {
|
||||
ty::Dynamic(data, ..) => data,
|
||||
ty::Infer(ty::TyVar(_)) => {
|
||||
// If the self-type is an inference variable, then it MAY wind up
|
||||
// being an object type, so induce an ambiguity.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue