Skip to content

Slow to produce "cannot find function name in this scope" errors with lots of ??? #105244

Closed
@jruderman

Description

@jruderman

Found with a modified fuzz-rustc

Code

fn main() -> Result<(), ()> {
    a(b(c(d(e(
    z???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
    )))))
}

Where it's slow

From -Z time-passes:

  • item_bodies_checking

From sample-head.txt:

  • Deep recursion involving check_call?

Regression

Regression in nightly-2022-10-07, apparently in rollup 4bd3078. I suspect #102694 (@compiler-errors)

Version

rustc 1.67.0-nightly (32e613bba 2022-12-02)
binary: rustc
commit-hash: 32e613bbaafee1bcabba48a2257b838f8d1c03d3
commit-date: 2022-12-02
host: x86_64-apple-darwin
release: 1.67.0-nightly
LLVM version: 15.0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-compiletimeIssue: Problems and improvements with respect to compile times.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions