Skip to content

macro!(); statements sometimes don't seem to include ; in stmt.span (HIR) #133845

Open

Description

@jieyouxu

cc #133833 and #133834 in suggestions such as

#![crate_type = "lib"]

fn foo() -> String {
    let mut bar = {
        unknown_macro!();
    };
    return bar;
}

Opened while looking at #133843 to not lose the FIXME.

Activity

  1. added
    A-diagnosticsArea: Messages for errors, warnings, and lints
    A-HIRArea: The high-level intermediate representation (HIR)
    C-bugCategory: This is a bug.
    E-needs-investigationCall for participation: This issues needs some investigation to determine current status
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-HIRArea: The high-level intermediate representation (HIR)A-diagnosticsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.E-needs-investigationCall for participation: This issues needs some investigation to determine current statusT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions