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

Rollup of 7 pull requests #65671

Merged
merged 40 commits into from Oct 22, 2019
Merged

Rollup of 7 pull requests #65671

merged 40 commits into from Oct 22, 2019

Commits on Oct 4, 2019

  1. Configuration menu
    Copy the full SHA
    a12788a View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2019

  1. Configuration menu
    Copy the full SHA
    0a08841 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    84ca0a1 View commit details
    Browse the repository at this point in the history
  3. Change untagged_unions to not allow union fields with drop

    Union fields may now never have a type with attached destructor.
    This for example allows unions to use arbitrary field types only by
    wrapping
    them in ManuallyDrop.
    
    The stable rule remains, that union fields must be Copy. We use the new
    rule for the `untagged_union` feature.
    
    See RFC 2514.
    
    Note for ui tests:
    We can't test move out through Box's deref-move since we can't
    have a Box in a union anymore.
    bluss authored and oli-obk committed Oct 11, 2019
    Configuration menu
    Copy the full SHA
    2f0c821 View commit details
    Browse the repository at this point in the history
  4. Remove unions_with_drop_fields lint

    Cases where it would trigger are now hard errors.
    SimonSapin authored and oli-obk committed Oct 11, 2019
    Configuration menu
    Copy the full SHA
    fe13bbd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e247a40 View commit details
    Browse the repository at this point in the history
  6. Update src/librustc_typeck/check/mod.rs

    Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
    2 people authored and oli-obk committed Oct 11, 2019
    Configuration menu
    Copy the full SHA
    05a644e View commit details
    Browse the repository at this point in the history
  7. Update src/librustc_typeck/check/mod.rs

    Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
    2 people authored and oli-obk committed Oct 11, 2019
    Configuration menu
    Copy the full SHA
    8c5ae86 View commit details
    Browse the repository at this point in the history
  8. Update src/librustc_typeck/error_codes.rs

    Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
    2 people authored and oli-obk committed Oct 11, 2019
    Configuration menu
    Copy the full SHA
    0301eaf View commit details
    Browse the repository at this point in the history
  9. Update src/test/run-pass/union/union-nodrop.rs

    Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
    2 people authored and oli-obk committed Oct 11, 2019
    Configuration menu
    Copy the full SHA
    bf25a9c View commit details
    Browse the repository at this point in the history
  10. More descriptive variable name

    SimonSapin authored and oli-obk committed Oct 11, 2019
    Configuration menu
    Copy the full SHA
    fc512d2 View commit details
    Browse the repository at this point in the history
  11. Extend union-nodrop.rs test

    SimonSapin authored and oli-obk committed Oct 11, 2019
    Configuration menu
    Copy the full SHA
    616cf52 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    50ec10e View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    9c1ad0f View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    2fc257c View commit details
    Browse the repository at this point in the history
  15. Clarify a vague comment

    oli-obk committed Oct 11, 2019
    Configuration menu
    Copy the full SHA
    fb23a5c View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    7e1a65d View commit details
    Browse the repository at this point in the history
  17. Update ui stderr

    oli-obk committed Oct 11, 2019
    Configuration menu
    Copy the full SHA
    f5669eb View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2019

  1. Rebase fallout

    oli-obk committed Oct 17, 2019
    Configuration menu
    Copy the full SHA
    bb5a652 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2019

  1. Configuration menu
    Copy the full SHA
    5719f57 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    50ddcbb View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2019

  1. Configuration menu
    Copy the full SHA
    77c50dc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c3b3a86 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0653694 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    875bdd5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    55b787e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d4b3654 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f6d70b4 View commit details
    Browse the repository at this point in the history
  8. 1 Configuration menu
    Copy the full SHA
    ac6daed View commit details
    Browse the repository at this point in the history
  9. Fix typo from rust-lang#65214

    Amanieu committed Oct 21, 2019
    Configuration menu
    Copy the full SHA
    3de7698 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d689c70 View commit details
    Browse the repository at this point in the history
  11. expand comment

    RalfJung committed Oct 21, 2019
    Configuration menu
    Copy the full SHA
    ebc9a1a View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    e9c2685 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#62330 - SimonSapin:no-drop-in-union-fields,…

    … r=RalfJung
    
    Change untagged_unions to not allow union fields with drop
    
    This is a rebase of rust-lang#56440, massaged to solve merge conflicts and make the test suite pass.
    
    Change untagged_unions to not allow union fields with drop
    
    Union fields may now never have a type with attached destructor. This for example allows unions to use arbitrary field types only by wrapping them in `ManuallyDrop` (or similar).
    
    The stable rule remains, that union fields must be `Copy`. We use the new rule for the `untagged_union` feature.
    
    Tracking issue: rust-lang#55149
    Centril committed Oct 21, 2019
    Configuration menu
    Copy the full SHA
    aba8489 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#65092 - tspiteri:const-is-pow2, r=oli-obk

    make is_power_of_two a const function
    
    This makes `is_power_of_two` a const function by using `&` instead of short-circuiting `&&`; Rust supports bitwise `&` for `bool` and short-circuiting is not required in the existing expression.
    
    I don't think this needs a const-hack label as I don't find the changed code less readable, if anything I prefer that it is clearer that short circuiting is not used.
    
    @oli-obk
    Centril committed Oct 21, 2019
    Configuration menu
    Copy the full SHA
    a160258 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#65621 - RalfJung:write_bytes, r=oli-obk

    miri: add write_bytes method to Memory doing bounds-checks and supporting iterators
    
    This lets us avoid some direct `Allocation` accesses in Miri.
    Centril committed Oct 21, 2019
    Configuration menu
    Copy the full SHA
    e825e21 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#65647 - nnethercote:rm-unnecessary-traits, …

    …r=Centril
    
    Remove unnecessary trait bounds and derivations
    
    This PR removes unnecessary trait bounds and derivations from many types.
    
    r? @nikomatsakis
    Centril committed Oct 21, 2019
    Configuration menu
    Copy the full SHA
    9072e10 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#65653 - RalfJung:gitignore, r=Mark-Simulacr…

    …um,Centril
    
    keep the root dir clean from debugging
    
    We landed this before with rust-lang#63307 but recently in rust-lang#65630 the IMO bad ignore crept back in.
    
    If you regularly do graphviz-based debugging and you are fine leaving junk in the rustc root dir, please configure your local `.git/info/exclude`. But most people working on rustc don't work with graphciz all that often (I for once never did), and not everyone likes to have stray generated files in their source dirs.
    
    Also Cc rust-lang#63373 rust-lang#53768 @ecstatic-morse @Mark-Simulacrum
    Centril committed Oct 21, 2019
    Configuration menu
    Copy the full SHA
    760cd97 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#65660 - varkor:canonical-const-to-bound-con…

    …st, r=eddyb
    
    Rename `ConstValue::Infer(InferConst::Canonical(..))` to `ConstValue::Bound(..)`
    
    It already has the right form, so this is just a renaming. Fixes rust-lang#65655.
    
    r? @eddyb
    Centril committed Oct 21, 2019
    Configuration menu
    Copy the full SHA
    c461d02 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    56756c2 View commit details
    Browse the repository at this point in the history