Skip to content

Circular modules with #[path] causes a stack overflow #6453

@RDambrosio016

Description

@RDambrosio016

I was trying something random which would never happen in real world code:

// foo.rs
#[path = "foo"]
mod foo;

This causes an error from rustc but it causes a stack overflow from rust analyzer:

thread '<unknown>' has overflowed its stack
[Error - 12:58:49 PM] Request textDocument/semanticTokens/full/delta failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions