Skip to content

Array (i.e. the type) methods aren't recognized #9992

Description

@yotamofek

Noticed that most of the methods that are defined directly on the core array type are not recognized by rust-analyzer. It also, by extension I guess, breaks type inference.

#![feature(array_methods)]

fn test() {
    let a = [(); 0].each_ref();
}

each_ref doesn't work for "go to def" command, nor does type info on hover. This is also true for (at least) Array::map, each_ref and as_slice, didn't check every single one.

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

    A-nameresname, path and module resolutionS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions