-
-
Notifications
You must be signed in to change notification settings - Fork 15k
ICE when invoking attribute macro on crate root #41211
Copy link
Copy link
Closed
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Description
Metadata
Metadata
Assignees
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Type
Fields
Give feedbackNo fields configured for issues without a type.
An ICE occurs when invoking a procedural macro attribute on the root of a crate with
#![my_proc_macro].Relevant backtrace frames:
This happens on the latest nightly [
rustc 1.18.0-nightly (ad36c2f55 2017-04-09)], however because I'm lazy I got this backtrace from the last debug build from my last PR so the lines have moved. I suspect it's one of the twounwraps()at line 217.cc @jseyfried