Skip to content

Quickfix add reference position error on macro #19428

Open
@A4-Tacks

Description

@A4-Tacks

rust-analyzer version: rust-analyzer 1.87.0-nightly (3ea711f 2025-03-09)

rustc version: rustc 1.87.0-nightly (3ea711f17 2025-03-09)

editor or extension: Vim9.1 [email protected]

code snippet to reproduce:

fn foo(f: &mut std::fmt::Formatter<'_>) {
    f.debug_list().entry(format_args!("")).finish();
}

On line 3 use quickfix to:

fn foo(f: &mut std::fmt::Formatter<'_>) {
    f.debug_list().entry(format_args!&("")).finish();
}

Expect output:

fn foo(f: &mut std::fmt::Formatter<'_>) {
    f.debug_list().entry(&format_args!("")).finish();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-idegeneral IDE featuresC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions