Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustc: Tweak expansion order of custom derive #36782

Merged
merged 1 commit into from
Sep 29, 2016

Commits on Sep 27, 2016

  1. rustc: Tweak expansion order of custom derive

    This commit alters the expansion order of custom macros-1.1 style `#[derive]`
    modes. Instead of left-to-right the expansion now happens in three categories,
    each of which is internally left-to-right:
    
    * Old-style custom derive (`#[derive_Foo]`) is expanded
    * New-style custom derive (macros 1.1) is expanded
    * Built in derive modes are expanded
    
    This gives built in derive modes maximal knowledge about the struct that's being
    expanded and also avoids pesky issues like exposing `#[structural_match]` or
    `#[rustc_copy_clone_marker]`.
    
    cc rust-lang#35900
    alexcrichton committed Sep 27, 2016
    Configuration menu
    Copy the full SHA
    e5e7021 View commit details
    Browse the repository at this point in the history