-
-
Notifications
You must be signed in to change notification settings - Fork 15k
decl_macro incremental compilation bug: missing field #112680
Copy link
Copy link
Closed
Labels
A-decl-macros-2-0Area: Declarative macros 2.0 (#39412)Area: Declarative macros 2.0 (#39412)A-incr-compArea: Incremental compilationArea: Incremental compilationA-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.Category: This is a bug.F-decl_macro`#![feature(decl_macro)]``#![feature(decl_macro)]`S-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issue
Metadata
Metadata
Assignees
Labels
A-decl-macros-2-0Area: Declarative macros 2.0 (#39412)Area: Declarative macros 2.0 (#39412)A-incr-compArea: Incremental compilationArea: Incremental compilationA-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.Category: This is a bug.F-decl_macro`#![feature(decl_macro)]``#![feature(decl_macro)]`S-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueStatus: A Minimal Complete and Verifiable Example has been found for this issue
Type
Fields
Give feedbackNo fields configured for issues without a type.
Note: This may be a duplicate, but I couldn't find one, so I'm going ahead and reporting it.
When using
decl_macro, I'm encountering a strange incremental compilation bug. I have a struct, declared as follows:To reproduce this, do the following:
cargo clean, thencargo check.cargo checkagain. The error below is emitted.cargo clean && cargo checkis run again with either version, it compiles fine.I don't understand why this would happen, but I do have the code, all of which can be found in this repository.
a/src/lib.rshas theentity_implmacros 2.0 macro, whileb/src/lib.rshas the struct & macro invocation shown above. I've minimized the example as best I can, but a normal (non-decl_macro) does not work, and I can't seem to reproduce in a single crate. If there's anything else needed, or anything I should try, please let me know.Error message:
Meta
rustc --version --verbose:@rustbot label +A-incr-comp +A-macros-2.0
(I'm just guessing on these labels.)