Skip to content

#[track_caller] on a macro declaration causes ICE #95151

Closed
@c410-f3r

Description

@c410-f3r

rustc 1.61.0-nightly (285fa7e 2022-03-14)

#[track_caller]
macro_rules! _foo {
    () => {};
}

fn main() {
}
error: internal compiler error: compiler/rustc_typeck/src/collect.rs:1978:13: unexpected sort of node in fn_sig()

Metadata

Metadata

Assignees

Labels

E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️glacierICE tracked in rust-lang/glacier.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions