Skip to content

Autoderef does not find methods on traits in scope #13264

Closed
@jdm

Description

@jdm

Testcase: https://gist.github.com/jdm/9936609

Note how AddChild is resolved, since it's defined in an impl for JSRef itself, whereas RemoveChild is not resolved since it's a trait method.

RUST_LOG=rustc::middle::typeck::check::method output: https://gist.github.com/jdm/9936635

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions