Skip to content

Vtable lookup needs more specific Binder #256

@avanhatt

Description

@avanhatt

In investigating #220, I realized we are not using a specific enough Binder in our vtable instance lookup:

let instance = Instance::resolve(
            self.tcx,
            ty::ParamEnv::reveal_all(),
            def_id,
            trait_ref_t.skip_binder().substs,
        )
        .unwrap()
        .unwrap();

Rather than skip_binder(), use the more complicated rustc binder lookup.

This gets us further into compiling #220 but doesn't fix everything; splitting off to its own issue.

Metadata

Metadata

Assignees

Labels

[C] BugThis is a bug. Something isn't working.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions