Skip to content

macros: The line number that panic! reports can be wrong in macro invocations #40649

Closed
@jseyfried

Description

@jseyfried

For example,

macro_rules! identity_macro { ($($t:tt)*) => { $($t)* } }

fn main() {
    identity_macro! { //< Today, the message says we panic here.
        panic!("")
    }
}

Metadata

Metadata

Assignees

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