syntex icon indicating copy to clipboard operation
syntex copied to clipboard

Process derives before other attributes

Open dtolnay opened this issue 8 years ago • 0 comments

Moved from https://github.com/serde-rs/serde/issues/612.

#[serde(deny_unknown_fields)]
#[derive(Deserialize)]
pub struct SomeStruct {
    /* ... */
}

This works in Macros 1.1 expansion but not with Syntex. Macros 1.1 expands derives ahead of other attributes and we should do the same.

dtolnay avatar Jan 07 '17 21:01 dtolnay