-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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, ..)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
#![feature(custom_attribute)]
#[my_header = "foo.c"]
pub mod foo {
use c2rust_bitfields::BitfieldStruct;
#[derive(BitfieldStruct)]
struct Foo {
}
}
will fail to compile with
error: cannot determine resolution for the derive macro `BitfieldStruct`
--> src/main.rs:7:14
|
7 | #[derive(BitfieldStruct)]
| ^^^^^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: aborting due to previous error
However, removing the my_header
attr will let it compile again.
ctaggart
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, ..)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.