Content-Length: 271610 | pFad | https://github.com/rust-lang/rust/issues/40649

1C macros: The line number that `panic!` reports can be wrong in macro invocations · Issue #40649 · rust-lang/rust · GitHub
Skip to content

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

@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









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/rust-lang/rust/issues/40649

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy