Skip to content

let_and_return suggestion causes errors macro_rule #4997

@elichai

Description

@elichai

Hi, the following code: https://play.rust-lang.org/?gist=0f26eb7594df37138a8ff964c50cc3ab
says the let binding is unnecessary but the suggestion causes the code to not compile with the following error:
error: attempted to repeat an expression containing no syntax variables matched as repeating at this depth

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingI-suggestion-causes-errorIssue: The suggestions provided by this Lint cause an ICE/error when appliedL-suggestionLint: Improving, adding or fixing lint suggestionsT-macrosType: Issues with macros and macro expansion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions