Skip to content

100 CPU load and infinite loop #4500

Closed
Closed
@giftal

Description

@giftal

A lot of if-then-else compositions cause rust-analyzer to load CPU 100%.
A corner case .rs file attached that leads to rust analyzer crash.
Please add annotation for rust analyzer to avoid analysis of complicated functions (like the one attached). E.g. rust fmt has #[rustfmt::skip], maybe offer something like #[rustanalyzer::skip]

rust_analyzer1

rust_analyzer2

rust_code_example.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parserparser issuesA-perfperformance issuesS-unactionableIssue requires feedback, design decisions or is blocked on other work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions