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 13 pull requests #77040

Closed
wants to merge 41 commits into from

Commits on Aug 22, 2020

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

Commits on Sep 3, 2020

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

Commits on Sep 11, 2020

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

Commits on Sep 12, 2020

  1. Make some methods of Pin unstable const

    Make the following methods unstable const under the `const_pin` feature:
    - `new`
    - `new_unchecked`
    - `into_inner`
    - `into_inner_unchecked`
    - `get_ref`
    - `into_ref`
    
    Also adds tests for these methods in a const context.
    
    Tracking issue: rust-lang#76654
    CDirkx committed Sep 12, 2020
    Configuration menu
    Copy the full SHA
    8f27e3c View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2020

  1. Only get ImplKind::Impl once

    tesuji committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    eede953 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ed6c7ef View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c3607bd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e4edc16 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    81b3b66 View commit details
    Browse the repository at this point in the history
  6. Bless miri-unleashed tests

    `const_mut_refs` doesn't actually work in a `const` or `static`
    ecstatic-morse committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    1e1257b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    abc7167 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2020

  1. Make some methods of Pin<&mut T> unstable const

    Make the following methods unstable const under the `const_pin` feature:
    - `into_ref`
    - `get_mut`
    - `get_unchecked_mut`
    CDirkx committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    e3c6e46 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2020

  1. don't take TyCtxt by reference

    lcnr committed Sep 19, 2020
    Configuration menu
    Copy the full SHA
    f7d5080 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a219ad6 View commit details
    Browse the repository at this point in the history
  3. take TyCtxt by value

    lcnr committed Sep 19, 2020
    Configuration menu
    Copy the full SHA
    67f319c View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2020

  1. Configuration menu
    Copy the full SHA
    2a00dda View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6734230 View commit details
    Browse the repository at this point in the history
  3. update stderr file

    lcnr committed Sep 20, 2020
    Configuration menu
    Copy the full SHA
    65b3419 View commit details
    Browse the repository at this point in the history
  4. use if let instead of single match arm expressions to compact code an…

    …d reduce nesting (clippy::single_match)
    matthiaskrgr committed Sep 20, 2020
    Configuration menu
    Copy the full SHA
    c690c82 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2020

  1. Configuration menu
    Copy the full SHA
    88a29e6 View commit details
    Browse the repository at this point in the history
  2. Update library/std/src/process.rs

    Co-authored-by: David Tolnay <[email protected]>
    FedericoPonzi and dtolnay committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    0acb0ed View commit details
    Browse the repository at this point in the history
  3. Don't recommend ManuallyDrop to customize drop order

    See
    https://internals.rust-lang.org/t/need-for-controlling-drop-order-of-fields/12914/21
    for the discussion.
    
    TL;DR: ManuallyDrop is unsafe and footguny, but you can just ask the
    compiler to do all the work for you by re-ordering declarations.
    matklad committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    60b102d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b4b4a2f View commit details
    Browse the repository at this point in the history
  5. add test

    lcnr committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    8fc782a View commit details
    Browse the repository at this point in the history
  6. Remove cast to usize for BytePos and CharPos

    The case shouldn't be necessary and implicitly truncating BytePos is not
    desirable.
    Juici committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    9a1f177 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    63195ec View commit details
    Browse the repository at this point in the history
  8. Don't use zip to compare iterators during pretty-print hack

    If the right-hand iterator has exactly one more element than the
    left-hand iterator, then both iterators will be fully consumed, but
    the extra element will never be compared.
    Aaron1011 committed Sep 21, 2020
    Configuration menu
    Copy the full SHA
    f5d71a9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d452744 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2020

  1. Rollup merge of rust-lang#72734 - pickfire:liballoc, r=KodrAus

    Reduce duplicate in liballoc reserve error handling
    
    Not sure if it affects compilation time.
    ecstatic-morse committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    851ce56 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#76131 - Aaron1011:fix/pretty-print-zip, r=lcnr

    Don't use `zip` to compare iterators during pretty-print hack
    
    If the right-hand iterator has exactly one more element than the
    left-hand iterator, then both iterators will be fully consumed, but
    the extra element will never be compared.
    
    Split out from rust-lang#76130
    ecstatic-morse committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    46ef65c View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#76150 - matklad:droporder, r=withoutboats

    Don't recommend ManuallyDrop to customize drop order
    
    See
    https://internals.rust-lang.org/t/need-for-controlling-drop-order-of-fields/12914/21
    for the discussion.
    
    TL;DR: ManuallyDrop is unsafe and footguny, but you can just ask the compiler to do all the work for you by re-ordering declarations.
    
    Specifically, the original example from the docs is much better written as
    
    ```rust
    struct Peach;
    struct Banana;
    struct Melon;
    struct FruitBox {
        melon: Melon,
        // XXX: mind the relative drop order of the fields below
        peach: Peach,
        banana: Banana,
    }
    ```
    ecstatic-morse committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    17f9928 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#76275 - FedericoPonzi:immutable-write-impl-…

    …73836, r=dtolnay
    
    Implementation of Write for some immutable ref structs
    
    Fixes  rust-lang#73836
    ecstatic-morse committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    cc99c2a View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#76489 - GuillaumeGomez:add-explanation-e075…

    …6, r=jyn514
    
    Add explanation for E0756
    
    r? @pickfire
    ecstatic-morse committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    fe6ab6c View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#76581 - lcnr:bound-too-generic, r=eddyb

    do not ICE on bound variables, return `TooGeneric` instead
    
    fixes rust-lang#73260, fixes rust-lang#74634, fixes rust-lang#76595
    
    r? @nikomatsakis
    ecstatic-morse committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    bc90edf View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#76655 - CDirkx:const-pin, r=ecstatic-morse

    Make some methods of `Pin` unstable const
    
    Make the following methods unstable const under the `const_pin` feature:
    - `new`
    - `new_unchecked`
    - `into_inner`
    - `into_inner_unchecked`
    - `get_ref`
    - `into_ref`
    - `get_mut`
    - `get_unchecked_mut`
    
    Of these, `into_inner` and `into_inner_unchecked` require the unstable `const_precise_live_drops`.
    
    Also adds tests for these methods in a const context.
    
    Tracking issue: rust-lang#76654
    
    r? @ecstatic-morse
    ecstatic-morse committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    2776eb8 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#76783 - lzutao:rd_impl_kind, r=GuillaumeGomez

    Only get ImplKind::Impl once
    
    With this, the code panics in one place instead of two.
    ecstatic-morse committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    d55b6e8 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#76807 - ecstatic-morse:const-checking-stage…

    …d-api, r=oli-obk
    
    Use const-checking to forbid use of unstable features in const-stable functions
    
    First step towards rust-lang#76618.
    
    Currently this code isn't ever hit because `qualify_min_const_fn` runs first and catches pretty much everything. One exception is `const_precise_live_drops`, which does not use the newly added code since it runs as part of a separate pass.
    
    Also contains some unrelated refactoring, which is split into separate commits.
    
    r? @oli-obk
    ecstatic-morse committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    3eb7818 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#76888 - matthiaskrgr:clippy_single_match_2,…

    … r=Dylan-DPC
    
    use if let instead of single match arm expressions
    
    use if let instead of single match arm expressions to compact code and reduce nesting (clippy::single_match)
    ecstatic-morse committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    af279e1 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#76914 - lcnr:path-no-more, r=ecstatic-morse

    extend `Ty` and `TyCtxt` lints to self types
    
    blocked on rust-lang#76891
    
    r? @ecstatic-morse cc @Aaron1011
    ecstatic-morse committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    a6d4bf7 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#77022 - Juici:master, r=lcnr

    Reduce boilerplate for BytePos and CharPos
    
    Reduces boilerplate code for BytePos and CharPos by using a macro to implement shared traits.
    ecstatic-morse committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    9a1fa7d View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#77032 - lcnr:visit-all-the-item-likes, r=da…

    …vidtwco
    
    lint missing docs for extern items
    
    fixes rust-lang#76991
    ecstatic-morse committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    e146fcf View commit details
    Browse the repository at this point in the history