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

ty: projections in transparent_newtype_field #73257

Merged

Commits on Jun 19, 2020

  1. ty: projections in transparent_newtype_field

    This commit modifies `transparent_newtype_field` so that it handles
    projections with generic parameters, where `normalize_erasing_regions`
    would ICE.
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Jun 19, 2020
    Configuration menu
    Copy the full SHA
    d5b0737 View commit details
    Browse the repository at this point in the history
  2. lint: prohibit fields with opaque types

    Opaque types cannot be used in extern declarations, and normally cannot
    exist in fields - except with type aliases to `impl Trait` and
    projections which normalize to them.
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Jun 19, 2020
    Configuration menu
    Copy the full SHA
    76ad38d View commit details
    Browse the repository at this point in the history
  3. lint: unify enum variant, union and struct logic

    This commit applies the changes introduced in rust-lang#72890 to both enum
    variants and unions - where the logic prior to rust-lang#72890 was duplicated.
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Jun 19, 2020
    Configuration menu
    Copy the full SHA
    0cccaa0 View commit details
    Browse the repository at this point in the history
  4. ty: simplify transparent_newtype_field

    This commit removes the normalization from `transparent_newtype_field` -
    turns out it wasn't necessary and that makes it a bunch simpler -
    particularly when handling projections.
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Jun 19, 2020
    Configuration menu
    Copy the full SHA
    a730d88 View commit details
    Browse the repository at this point in the history