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 #67184

Merged
merged 29 commits into from
Dec 10, 2019
Merged

Rollup of 11 pull requests #67184

merged 29 commits into from
Dec 10, 2019

Commits on Dec 7, 2019

  1. Configuration menu
    Copy the full SHA
    3f1e391 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    24d7f72 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c737169 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e9840d9 View commit details
    Browse the repository at this point in the history
  5. Simplify check_decl_no_pat.

    Centril committed Dec 7, 2019
    Configuration menu
    Copy the full SHA
    1b2a422 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7ba1232 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ca2ffe3 View commit details
    Browse the repository at this point in the history
  8. fix warnings with cfg(miri)

    RalfJung committed Dec 7, 2019
    Configuration menu
    Copy the full SHA
    ab73d10 View commit details
    Browse the repository at this point in the history
  9. Added ExactSizeIterator bound to return types

    in librustc in several places
    Bartłomiej Kuras committed Dec 7, 2019
    Configuration menu
    Copy the full SHA
    d97379a View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2019

  1. Simplify Layout::extend_packed

    kraai committed Dec 8, 2019
    Configuration menu
    Copy the full SHA
    2b2b16c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2468b23 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4ea7bb8 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2019

  1. Do not ICE on closure

    JohnTitor committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    b879ecc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bf1f1c2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9e6725d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e2c962d View commit details
    Browse the repository at this point in the history
  5. resolve: Make visibility resolution more speculative

    To avoid potential duplicate diagnostics and separate the error reporting logic
    petrochenkov committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    5f6267c View commit details
    Browse the repository at this point in the history
  6. Added ExactSizeIterator bound to return types

    This reverts commit d97379a.
    Bartłomiej Kuras committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    989bf84 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#66892 - dtolnay:fmt5, r=KodrAus

    Format libcore with rustfmt (including tests and benches)
    
    Important: two small non-rustfmt changes that will need close review:
    
    - I added `#[rustfmt::skip]` to two manually arranged tables in src/libcore/benches/ascii.rs; see first commit in the PR.
    - I added `// ignore-tidy-filelength` to src/libcore/ptr/mod.rs because rustfmt puts it over tidy's 3000 line limit; see second commit in the PR. I filed rust-lang#66891 to follow up on breaking up that file. For now though having it be formatted is more important than having it below the line limit.
    
    ---
    
    As with my previous formatting PRs, I am avoiding causing merge conflicts in other PRs by only touches those files that are not involved in any currently open PR. Files that appear in new PRs between when this PR is opened and when it makes it to the top of the bors queue will be reverted from this PR.
    
    The list of files involved in open PRs is determined by querying GitHub's GraphQL API [with this script](https://gist.github.com/dtolnay/aa9c34993dc051a4f344d1b10e4487e8).
    
    With the list of files from the script in outstanding_files, the relevant commands were:
    
    ```
    $ find src/libcore -name '*.rs' \
        | xargs rustfmt --edition=2018 --unstable-features --skip-children
    $ rg libcore outstanding_files | xargs git checkout --
    ```
    
    To confirm no funny business:
    
    ```
    $ git checkout $THIS_COMMIT^
    $ git show --pretty= --name-only $THIS_COMMIT \
        | xargs rustfmt --edition=2018 --unstable-features --skip-children
    $ git diff $THIS_COMMIT  # there should be no difference
    ```
    
    r? @Dylan-DPC
    tmandry committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    4166ce8 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#67106 - petrochenkov:docerr, r=matthewjasper

    resolve: Resolve visibilities on fields with non-builtin attributes
    
    Follow-up to rust-lang#66669.
    
    The first commit is primary (and also a backport candidate), the other ones are further cleanups.
    In this case it's not strictly necessary to avoid reporting errors during speculative resolution because 1) all visibilities are resolved non-speculatively sooner or later and 2) error reporting infrastructure merges identical errors with identical spans anyway.
    
    Fixes rust-lang#67006
    r? @matthewjasper
    tmandry committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    5c6941b View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#67113 - Centril:enum-vis-pretty-fix, r=davi…

    …dtwco
    
    Print the visibility in `print_variant`.
    
    r? @davidtwco
    cc @dtolnay for `syn` awareness.
    tmandry committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    3340a5b View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#67115 - Centril:simplify-check-decl-no-pat,…

    … r=davidtwco
    
    Simplify `check_decl_no_pat`.
    
    r? @davidtwco
    tmandry committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    a0e00f8 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#67119 - RalfJung:miri-test-libstd, r=alexcr…

    …ichton
    
    libstd miri tests: avoid warnings
    
    Ignore tests in a way that all the code still gets compiled, to get rid of all the "unused" warnings that otherwise show up when running the test suite in Miri.
    tmandry committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    e775820 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#67125 - hashedone:master, r=petrochenkov

    Added ExactSizeIterator bound to return types
    
    Fixes rust-lang#66865
    tmandry committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    28b112f View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#67138 - kraai:simplify-Layout-extend_packed…

    …, r=Amanieu
    
    Simplify `Layout::extend_packed`
    tmandry committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    6b6b6f3 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#67145 - RalfJung:miri-step, r=oli-obk

    fix miri step debug printing
    
    r? @oli-obk
    tmandry committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    5ce5464 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    c2702e3 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#67155 - kraai:move-instead-of-binding-to-re…

    …ference, r=cramertj
    
    Move `Layout`s instead of binding by reference
    tmandry committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    196ca9d View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#67169 - lzutao:inline_osstr, r=nagisa

    inline some common methods on OsStr
    
    Closes rust-lang#67150
    tmandry committed Dec 9, 2019
    Configuration menu
    Copy the full SHA
    c255815 View commit details
    Browse the repository at this point in the history