Closed
Description
This code crashes the compiler. However, the location of the error is pointed out, which is nice.
#![feature(macro_lifetime_matcher)]
macro_rules! m { ($x:lifetime) => { } }
m!(a);
error: internal compiler error: not a lifetime
--> src/main.rs:5:8
|
5 | m!(a);
| ^
thread 'main' panicked at 'Box<Any>', librustc_errors/lib.rs:491:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.
error: aborting due to previous error
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: The lexing & parsing of Rust source code to an ASTCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Relevant to the compiler team, which will review and decide on the PR/issue.