Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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