Skip to content

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

Closed
@jruderman

Description

@jruderman
Contributor

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

Activity

added
C-bugCategory: This is a bug.
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
on Dec 4, 2022
added
I-slowIssue: Problems and improvements with respect to performance of generated code.
and removed
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
on Dec 4, 2022
added
I-compiletimeIssue: Problems and improvements with respect to compile times.
and removed
I-slowIssue: Problems and improvements with respect to performance of generated code.
on Dec 9, 2022
added 2 commits that reference this issue on Dec 23, 2022

Rollup merge of rust-lang#106055 - compiler-errors:too-many-calls, r=…

f6d8ba2

Rollup merge of rust-lang#106055 - compiler-errors:too-many-calls, r=…

de99a87
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

    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

      Participants

      @nikic@matthiaskrgr@jruderman

      Issue actions

        Slow to produce "cannot find function `name` in this scope" errors with lots of `???` · Issue #105244 · rust-lang/rust