Skip to content

Cannot goto reference for raw label and lifetimes #20261

@A4-Tacks

Description

@A4-Tacks

rust-analyzer version: rust-analyzer 1.88.0 (6b00bc3 2025-06-23)

rustc version: rustc 1.88.0 (6b00bc388 2025-06-23)

editor or extension: VIM9.1

code snippet to reproduce:

fn foo<'r#fn>(s: &'r#fn str) {
    let _a: &'r#fn str = s;
    let _b: &'r#fn str;
    'r#break: {
        break 'r#break;
    }
}

On <'r#fn> and 'r#break use goto-references, result is define site only

Metadata

Metadata

Labels

C-bugCategory: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions