-
-
Notifications
You must be signed in to change notification settings - Fork 194
Open
Description
While making a reproducer for #596, I stumbled on this.
Adding rkyv::Serialize to a derive breaks any attr
used on enum variants.
#[derive(rkyv::Archive)]
pub enum Works {
#[rkyv(attr(expect(missing_docs)))]
Variant { field: () },
}
#[derive(rkyv::Archive, rkyv::Serialize)]
pub enum Breaks {
#[rkyv(attr(expect(missing_docs)))]
Variant { field: () },
}
$ cargo build
Compiling rkyv-serialize-breaks-attr v0.1.0 (/workspace/rkyv-serialize-breaks-attr-issue)
error: unrecognized rkyv arguments
--> src/lib.rs:9:12
|
9 | #[rkyv(attr(expect(missing_docs)))]
| ^^^^
error: could not compile `rkyv-serialize-breaks-attr` (lib) due to 1 previous error
Metadata
Metadata
Assignees
Labels
No labels