Skip to content

rust-analyzer hangs with too many #[test_case]s #18274

@darichey

Description

@darichey

rust-analyzer version: master

code snippet to reproduce:

#[test_case]
#[test_case]
#[test_case]
#[test_case]
#[test_case]
#[test_case]
#[test_case]
#[test_case]
fn test() {}

rust-analyzer will hang while trying to analyze this file. I think it's exponential, so if it doesn't for you, just add more #[test_case] :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugI-hangIssue: The analysis never terminates, due to infinite loops, deadlock, livelock, etc.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions