Skip to content

save-analysis doesn't dump ref entry for struct name in static method calls #57462

Closed
@staktrace

Description

Here's a small testcase:

struct Foo {
}

impl Foo {
  fn new() {
  }
}

fn main() {
  Foo::new();
}

If you run this through rustc -Z save-analysis and look at the save-analysis JSON file, you'll see that there is no entry for the Foo part of Foo::new(). This seems like a bug.

Metadata

Assignees

No one assigned

    Labels

    A-save-analysisArea: saving results of analyses such as inference and borrowck results to a file.C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions