Skip to content

Regression: rust-analyzer fails to expand recursively a specific macro in rayon #20037

Open
@redsun82

Description

@redsun82

When looking at this source file in the rayon project, expanding the multizip_impls! macro call does not fully expand, with some nest! macros remaining unexpanded. I've tried an older version where instead the expansion was complete, so this is a regression. The older version I tried was 0.3.2370-standalone, but I didn't look for the last version where that was working.

I was actually made aware of this problem by using rust-analyzer as an analysis library. As far as I know, this was last seen working at version 0.0.274 of the rust-analyzer crates, like other issues that were fixed in the meantime (#19873 and #19931, which may be related). I also have a case that seems similar to this on a private repository, but I think that if the rayon case gets fixed, it should also happen to the other case.

rust-analyzer version: 0.3.2500-standalone
rustc version: 1.87.0
editor or extension: VSCode version 0.3.2500
relevant settings: -
repository link (if public, optional): https://github.com/rayon-rs/rayon/blob/ae07384e3e0b238cea89f0c14891f351c65a5cee/src/iter/multizip.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macromacro expansionC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions