Skip to content

Enabling recursion in Visitor.visit_ty makes the compiler reject fixed-length arrays #10894

Closed
@alexcrichton

Description

@alexcrichton

It turns out that the compiler has a blank implementation of visit_ty (which does not recurse). The only relevant recursing is the visit_expr on the length of a fixed-length vector. If recursion is enabled (which I'm doing), the compiler dies all over the place because the expression doesn't have a type listed in the tcx.

For now I'm disabling recursion manually (to restore the old behavior), and tagging all relevant locations with this issue.

cc @nikomatsakis
cc @pnkfelix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions