Skip to content

Inconsistent autocompletion in block macro arguments #10039

@not-my-profile

Description

@not-my-profile

This is a similar issue as #8158 but not the same.

macro_rules! some_macro {
    ($block:block) => {
        $block
    }
}

fn main() {
    some_macro!({
        let foo = String::new();

        // typing foo.l here suggests nothing

        foo.len();

        // typing foo.l here suggests len()

    });
}

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