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 11 pull requests #69088

Merged
merged 45 commits into from
Feb 12, 2020
Merged

Rollup of 11 pull requests #69088

merged 45 commits into from
Feb 12, 2020

Commits on Feb 8, 2020

  1. Configuration menu
    Copy the full SHA
    3998249 View commit details
    Browse the repository at this point in the history
  2. PEP8 format spacing

    chrissimpkins committed Feb 8, 2020
    Configuration menu
    Copy the full SHA
    19aaf63 View commit details
    Browse the repository at this point in the history
  3. PEP8 format spacing

    chrissimpkins committed Feb 8, 2020
    Configuration menu
    Copy the full SHA
    6ce8d2b View commit details
    Browse the repository at this point in the history
  4. PEP8 format spacing

    chrissimpkins committed Feb 8, 2020
    Configuration menu
    Copy the full SHA
    adde3d4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    60889d4 View commit details
    Browse the repository at this point in the history
  6. PEP8 format spacing

    chrissimpkins committed Feb 8, 2020
    Configuration menu
    Copy the full SHA
    e30dd86 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f38e270 View commit details
    Browse the repository at this point in the history
  8. PEP8 format spacing

    chrissimpkins committed Feb 8, 2020
    Configuration menu
    Copy the full SHA
    d366343 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a53f45f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8d04b95 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    85e3661 View commit details
    Browse the repository at this point in the history
  12. PEP8 format spacing

    chrissimpkins committed Feb 8, 2020
    Configuration menu
    Copy the full SHA
    814aa06 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    9b10fc4 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    77d158d View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2020

  1. Remove common usage pattern from AllocRef

    Tim Diekmann committed Feb 10, 2020
    Configuration menu
    Copy the full SHA
    25de80a View commit details
    Browse the repository at this point in the history
  2. Add missing _zeroed varants to AllocRef

    Tim Diekmann committed Feb 10, 2020
    Configuration menu
    Copy the full SHA
    97d1f8d View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2020

  1. Support linking from a .rlink file

    Flag `-Z no-link` was previously introduced, which allows creating
    an `.rlink` file to perform compilation without linking.
    This change enables linking from an `.rlink` file.
    Victor Ding committed Feb 11, 2020
    Configuration menu
    Copy the full SHA
    a47fdb9 View commit details
    Browse the repository at this point in the history
  2. Preparation for allocator aware Box

    Tim Diekmann committed Feb 11, 2020
    Configuration menu
    Copy the full SHA
    76aa29f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3b23d22 View commit details
    Browse the repository at this point in the history
  4. Add self to .mailmap

    Bassetts committed Feb 11, 2020
    Configuration menu
    Copy the full SHA
    3884311 View commit details
    Browse the repository at this point in the history
  5. Keyword docs

    Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
    Co-Authored-By: Tim Robinson <tim.g.robinson@gmail.com>
    Co-Authored-By: Peter Todd <pete@petertodd.org>
    Co-Authored-By: Dylan DPC <dylan.dpc@gmail.com>
    5 people committed Feb 11, 2020
    Configuration menu
    Copy the full SHA
    8e26ad0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    60aaf90 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a056817 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ff36923 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c04195d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    4ecba94 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    98b46f7 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b6f875d View commit details
    Browse the repository at this point in the history
  13. Nits.

    cjgillot committed Feb 11, 2020
    Configuration menu
    Copy the full SHA
    443a42a View commit details
    Browse the repository at this point in the history
  14. Move it all into rustc_hir.

    cjgillot committed Feb 11, 2020
    Configuration menu
    Copy the full SHA
    d3b2385 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    513eb74 View commit details
    Browse the repository at this point in the history
  16. Review comments.

    cjgillot committed Feb 11, 2020
    Configuration menu
    Copy the full SHA
    fc73e19 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    ee52fe6 View commit details
    Browse the repository at this point in the history
  18. Fix outdated doc comment.

    jumbatm committed Feb 11, 2020
    Configuration menu
    Copy the full SHA
    c1ed84e View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2020

  1. Rollup merge of rust-lang#67695 - gilescope:truth, r=centril

    Added dyn and true keyword docs
    
    r? @Centril
    JohnTitor committed Feb 12, 2020
    Configuration menu
    Copy the full SHA
    b6a9aa9 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#68487 - 0dvictor:nolink, r=tmandry

    [experiment] Support linking from a .rlink file
    
    Flag `-Z no-link` was previously introduced, which allows creating an `.rlink` file to perform compilation without linking. This change enables linking from an `.rlink` file.
    
    Part of Issue rust-lang#64191
    JohnTitor committed Feb 12, 2020
    Configuration menu
    Copy the full SHA
    344f8d9 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#68554 - cjgillot:lang_items, r=Zoxc

    Split lang_items to crates `rustc_hir` and `rustc_passes`.
    
    As discussed in comment rust-lang#67688 (comment)
    JohnTitor committed Feb 12, 2020
    Configuration menu
    Copy the full SHA
    19b0c00 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#68937 - ecstatic-morse:unchecked-intrinsics…

    …-test, r=RalfJung
    
    Test failure of unchecked arithmetic intrinsics in const eval
    
    Test that the unchecked arithmetic intrinsics that were made unstably const in rust-lang#68809 emit an error during const-eval if given invalid input.
    
    Addresses [this comment](rust-lang#68809 (comment)).
    
    r? @RalfJung
    JohnTitor committed Feb 12, 2020
    Configuration menu
    Copy the full SHA
    4b82b51 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#68947 - chrissimpkins:python-fmt, r=alexcri…

    …chton
    
    Python script PEP8 style guide space formatting and minor Python source cleanup
    
    This PR includes the following changes in the Python sources based on a flake8 3.7.9 (mccabe: 0.6.1, pycodestyle: 2.5.0, pyflakes: 2.1.1) CPython 3.7.6 on Darwin lint:
    
    - PEP8 style guide spacing updates *without* line length changes
    - removal of unused local variable assignments in context managers and exception handling
    - removal of unused Python import statements
    - removal of unnecessary semicolons
    JohnTitor committed Feb 12, 2020
    Configuration menu
    Copy the full SHA
    931005d View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#68999 - andjo403:itertools, r=Centril

    remove dependency on itertools
    
    r? @Centril
    JohnTitor committed Feb 12, 2020
    Configuration menu
    Copy the full SHA
    9b51a52 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#69026 - TimDiekmann:common-usage, r=Amanieu

    Remove common usage pattern from `AllocRef`
    
    This removes the common usage patterns from `AllocRef`:
    - `alloc_one`
    - `dealloc_one`
    - `alloc_array`
    - `realloc_array`
    - `dealloc_array`
    
    Actually, they add nothing to `AllocRef` except a [convenience wrapper around `Layout` and other methods in this trait](https://doc.rust-lang.org/1.41.0/src/core/alloc.rs.html#1076-1240) but have a major flaw: The documentation of `AllocRefs` notes, that
    
    > some higher-level allocation methods (`alloc_one`, `alloc_array`) are well-defined on zero-sized types and can optionally support them: it is left up to the implementor whether to return `Err`, or to return `Ok` with some pointer.
    
    With the current API, `GlobalAlloc` does not have those methods, so they cannot be overridden for `liballoc::Global`, which means that even if the global allocator would support zero-sized allocations, `alloc_one`, `alloc_array`, and `realloc_array` for `liballoc::Global` will error, while calling `alloc` with a zeroed-size `Layout` could succeed. Even worse: allocating with `alloc` and deallocating with `dealloc_{one,array}` could end up with not calling `dealloc` at all!
    
    For the full discussion please see rust-lang/wg-allocators#18
    
    r? @Amanieu
    JohnTitor committed Feb 12, 2020
    Configuration menu
    Copy the full SHA
    9bc003d View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#69027 - TimDiekmann:zeroed-alloc, r=Amanieu

    Add missing `_zeroed` varants to `AllocRef`
    
    The majority of the allocator wg has decided to add the missing `_zeroed` variants to `AllocRef`:
    
    > these should be added since they can be efficiently implemented with the `mremap` system call on Linux. `mremap` allows you to move/grow/shrink a memory mapping, and any new pages added for growth are guaranteed to be zeroed.
    >
    > If `AllocRef` does not have these methods then the user will have to manually write zeroes to the added memory since the API makes no guarantees on their contents.
    
    For the full discussion please see rust-lang/wg-allocators#14.
    
    This PR provides default implementations for `realloc_zeroed`, `alloc_excess_zeroed`, `realloc_excess_zeroed`, and `grow_in_place_zeroed`.
    
    r? @Amanieu
    JohnTitor committed Feb 12, 2020
    Configuration menu
    Copy the full SHA
    a50ccd9 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#69058 - TimDiekmann:box, r=Amanieu

    Preparation for allocator aware `Box`
    
    This cleans up the `Box` code a bit, and uses `Box::from_raw(ptr)` instead of `Box(ptr)`.
    Additionally, `box_free` and `exchange_malloc` now uses the `AllocRef` trait and a comment was added on how `box_free` is tied to `Box`.
    
    This a preparation for an upcoming PR, which makes `Box` aware of an allocator.
    
    r? @Amanieu
    JohnTitor committed Feb 12, 2020
    Configuration menu
    Copy the full SHA
    5fbfaac View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#69070 - Bassetts:master, r=alexcrichton

    Add self to .mailmap
    JohnTitor committed Feb 12, 2020
    Configuration menu
    Copy the full SHA
    77a3245 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#69077 - jumbatm:fix-comment, r=Dylan-DPC

    Fix outdated doc comment.
    
    r? @RalfJung
    JohnTitor committed Feb 12, 2020
    Configuration menu
    Copy the full SHA
    486856f View commit details
    Browse the repository at this point in the history