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 14 pull requests #81417

Merged
merged 35 commits into from
Jan 26, 2021
Merged

Rollup of 14 pull requests #81417

merged 35 commits into from
Jan 26, 2021

Commits on Jan 10, 2021

  1. Add unwrap_unchecked() methods for Option and Result

    In particular:
      - `unwrap_unchecked()` for `Option`.
      - `unwrap_unchecked()` and `unwrap_err_unchecked()` for `Result`.
    
    These complement other `*_unchecked()` methods in `core` etc.
    
    Currently there are a couple of places it may be used inside rustc
    (`LinkedList`, `BTree`). It is also easy to find other repositories
    with similar functionality.
    
    Fixes rust-lang#48278.
    
    Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
    ojeda committed Jan 10, 2021
    Configuration menu
    Copy the full SHA
    679f6f3 View commit details
    Browse the repository at this point in the history
  2. Add SAFETY annotations

    Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
    ojeda committed Jan 10, 2021
    Configuration menu
    Copy the full SHA
    76299b3 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2021

  1. Configuration menu
    Copy the full SHA
    def0e9b View commit details
    Browse the repository at this point in the history
  2. Move test to src/test/ui/consts/

    Apparently `tidy` has a hard limit of 2830 tests in the
    `src/test/ui/issues/` directory, and this test hit that limit.
    
    `src/test/ui/consts/` is probably a better location anyway.
    camelid committed Jan 18, 2021
    Configuration menu
    Copy the full SHA
    a7b7a43 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2021

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

Commits on Jan 24, 2021

  1. Fix spelling in documentation for error E0207

    I have trouble parsing the the wording "type parameter parameter".
    jockbert committed Jan 24, 2021
    Configuration menu
    Copy the full SHA
    1d03648 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2021

  1. Configuration menu
    Copy the full SHA
    2be1993 View commit details
    Browse the repository at this point in the history
  2. rustc_codegen_ssa: use wall time for codegen_to_LLVM_IR time-passes e…

    …ntry
    
    Use elapsed wall time spent on codegen_to_LLVM_IR for all CGUs as a
    whole, rather than the sum for each CGU (the distinction matters for
    parallel builds, where some CGUs are processed in parallel).
    tgnottingham committed Jan 25, 2021
    Configuration menu
    Copy the full SHA
    59195a2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    088c89d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    042facb View commit details
    Browse the repository at this point in the history
  5. Link the reference about undefined behavior

    Suggested-by: Mara Bos <m-ou.se@m-ou.se>
    Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
    ojeda committed Jan 25, 2021
    Configuration menu
    Copy the full SHA
    0140dac View commit details
    Browse the repository at this point in the history
  6. Add tracking issue

    Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
    ojeda committed Jan 25, 2021
    Configuration menu
    Copy the full SHA
    01250fc View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1c0a52d View commit details
    Browse the repository at this point in the history
  8. tidy: Remove cargo check.

    The cargo check was checking that every dependency had an `extern crate`.
    The compiler has not used `extern crate` in a long time (edition 2018).
    The test was broken (the call to `!super::filter_dirs(path)` was backwards).
    This just removes it since it is no longer valid.
    ehuss committed Jan 25, 2021
    Configuration menu
    Copy the full SHA
    3eebf9b View commit details
    Browse the repository at this point in the history
  9. tidy: Remove edition filter exceptions.

    These exceptions are no longer necessary.
    ehuss committed Jan 25, 2021
    Configuration menu
    Copy the full SHA
    d980715 View commit details
    Browse the repository at this point in the history
  10. tidy: Remove unnecessary trailing semicolon.

    This will cause a failure due to the warning after the next beta branch
    as rust-lang#79812 will hit beta.
    ehuss committed Jan 25, 2021
    Configuration menu
    Copy the full SHA
    6f22f51 View commit details
    Browse the repository at this point in the history
  11. Update books

    ehuss committed Jan 25, 2021
    Configuration menu
    Copy the full SHA
    fdd592a View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2021

  1. typeck: Don't suggest converting LHS exprs

    Converting LHS of an assignment does not work, so avoid suggesting that.
    
    Fixes rust-lang#81293
    osa1 committed Jan 26, 2021
    Configuration menu
    Copy the full SHA
    d035be8 View commit details
    Browse the repository at this point in the history
  2. Refine "remove semicolon" suggestion in trait selection

    Don't suggest it if the last statement doesn't have a semicolon
    
    Fixes rust-lang#81098
    
    See also rust-lang#54771 for why this suggestion was added
    osa1 committed Jan 26, 2021
    Configuration menu
    Copy the full SHA
    8ddc1c8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    39e24f7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f520667 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#80812 - rust-lang:relnotes-1.50.0, r=Mark-S…

    …imulacrum
    
    Update RELEASES.md for 1.50.0
    
    ### [Rendered](https://github.com/rust-lang/rust/blob/relnotes-1.50.0/RELEASES.md)
    
    r? `@Mark-Simulacrum`
    cc `@rust-lang/release`
    JohnTitor authored Jan 26, 2021
    Configuration menu
    Copy the full SHA
    f85fd81 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#80876 - ojeda:option-result-unwrap_unchecke…

    …d, r=m-ou-se
    
    Add `unwrap_unchecked()` methods for `Option` and `Result`
    
    In particular:
      - `unwrap_unchecked()` for `Option`.
      - `unwrap_unchecked()` and `unwrap_err_unchecked()` for `Result`.
    
    These complement other `*_unchecked()` methods in `core` etc.
    
    Currently there are a couple of places it may be used inside rustc (`LinkedList`, `BTree`). It is also easy to find other repositories with similar functionality.
    
    Fixes rust-lang#48278.
    JohnTitor authored Jan 26, 2021
    Configuration menu
    Copy the full SHA
    fe6b3a9 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#80900 - camelid:readpointerasbytes-ice, r=o…

    …li-obk
    
    Fix ICE with `ReadPointerAsBytes` validation error
    
    Fixes rust-lang#79690.
    
    r? ``````@oli-obk``````
    JohnTitor authored Jan 26, 2021
    Configuration menu
    Copy the full SHA
    c2c90bf View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#81191 - ssomers:btree_more_order_chaos, r=M…

    …ark-Simulacrum
    
    BTreeMap: test all borrowing interfaces and test more chaotic order behavior
    
    Inspired by rust-lang#81169, test what happens if you mess up order of the type with which you search (as opposed to the key type).
    
    r? `@Mark-Simulacrum`
    JohnTitor authored Jan 26, 2021
    Configuration menu
    Copy the full SHA
    8299105 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#81195 - estebank:suggest-bound-on-trait-wit…

    …h-params, r=oli-obk
    
    Account for generics when suggesting bound
    
    Fix rust-lang#81175.
    JohnTitor authored Jan 26, 2021
    Configuration menu
    Copy the full SHA
    644df2f View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#81299 - GuillaumeGomez:fix-eslint-detected-…

    …bugs, r=Nemo157
    
    Fix some bugs reported by eslint
    
    Simply went into `src/librustdoc/html/static/` and ran `eslint *.js` in case you want to reproduce. :)
    
    r? ``````@Nemo157``````
    JohnTitor authored Jan 26, 2021
    Configuration menu
    Copy the full SHA
    1308c14 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#81325 - osa1:issue81293, r=estebank

    typeck: Don't suggest converting LHS exprs
    
    Converting LHS of an assignment does not work, so avoid suggesting that.
    
    Fixes rust-lang#81293
    JohnTitor authored Jan 26, 2021
    Configuration menu
    Copy the full SHA
    71f13fb View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#81353 - jockbert:spelling_in_e0207, r=petro…

    …chenkov
    
    Fix spelling in documentation for error E0207
    
    I have trouble parsing the the wording "type parameter parameter".
    JohnTitor authored Jan 26, 2021
    Configuration menu
    Copy the full SHA
    3741844 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#81369 - tgnottingham:codegen-to-llvm-ir-wal…

    …l-time, r=lcnr
    
    rustc_codegen_ssa: use wall time for codegen_to_LLVM_IR time-passes entry
    
    Use elapsed wall time spent on codegen_to_LLVM_IR for all CGUs as a
    whole, rather than the sum for each CGU (the distinction matters for
    parallel builds, where some CGUs are processed in parallel).
    JohnTitor authored Jan 26, 2021
    Configuration menu
    Copy the full SHA
    acbd101 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#81389 - ehuss:rustdoc-cmark-extensions, r=G…

    …uillaumeGomez
    
    rustdoc: Document CommonMark extensions.
    
    This updates the rustdoc book to include some documentation on the CommonMark extensions that rustdoc supports.
    JohnTitor authored Jan 26, 2021
    Configuration menu
    Copy the full SHA
    ebe28f7 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#81399 - ehuss:update-books, r=ehuss

    Update books
    
    ## nomicon
    
    7 commits in a8584998eacdea7106a1dfafcbf6c1c06fcdf925..bbf06ad39d1f45654047e9596b750cc6e6d1b693
    2021-01-06 12:49:49 -0500 to 2021-01-22 07:07:31 -0800
    - Fix alloc link in exotic-sizes for local docs (rust-lang/nomicon#255)
    - Remove TODO
    - Fix small punctuation error
    - Arc revisions (Clone atomic explanation) (pt2/3(+?))
    - Fix Arc Clone
    - Arc revisions (pt1/2(+?))
    - Simple Arc implementation (without Weak refs)
    
    ## reference
    
    5 commits in 50af691f838937c300b47812d0507c6d88c14f97..f02b09eb6e8af340ad1256a54adb7aae2ff3163e
    2021-01-12 21:19:20 -0800 to 2021-01-22 01:53:02 -0800
    - Fix missing space (rust-lang/reference#941)
    - Start documenting name resolution. (rust-lang/reference#937)
    - Fix plural and delete spurious words in comparison ops (rust-lang/reference#932)
    - Document execution order (rust-lang/reference#888)
    - Compound operator expressions (rust-lang/reference#915)
    
    ## book
    
    3 commits in ac57a0ddd23d173b26731ccf939f3ba729753275..e724bd826580ff95df48a8533af7dec1080693d4
    2021-01-09 14:18:45 -0500 to 2021-01-20 08:19:49 -0600
    - Fixes rust-lang/book#2417. Get the index from user input instead of a const. (rust-lang/book#2566)
    - Turn off the playground in a bunch more lib.rs inclusions (rust-lang/book#2569)
    - Merge pull request rust-lang/book#2567 from rust-lang/rust-1.49
    
    ## rust-by-example
    
    1 commits in 03e23af01f0b4f83a3a513da280e1ca92587f2ec..f633769acef68574427a6fae6c06f13bc2199573
    2021-01-09 10:20:28 -0300 to 2021-01-13 20:58:25 -0300
    - Fixed styling on closure example (rust-lang/rust-by-example#1405)
    JohnTitor authored Jan 26, 2021
    Configuration menu
    Copy the full SHA
    9da3608 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#81401 - ehuss:tidy-cleanup, r=Mark-Simulacrum

    tidy: Some code cleanup.
    
    This is just some cleanup that shouldn't have any change in behavior.  (See commit messages for more details.)
    
    * Remove cargo check. This test wasn't working, and is no longer valid.
    * Remove edition filter exceptions. They are no longer necessary.
    * Remove unnecessary trailing semicolon.  Otherwise the warning will prevent tidy from building after the beta branch.
    JohnTitor authored Jan 26, 2021
    Configuration menu
    Copy the full SHA
    24a1081 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#81407 - osa1:issue81098, r=estebank

    Refine "remove semicolon" suggestion in trait selection
    
    Don't suggest it if the last statement doesn't have a semicolon
    
    Fixes rust-lang#81098
    
    See also rust-lang#54771 for why this suggestion was added
    JohnTitor authored Jan 26, 2021
    Configuration menu
    Copy the full SHA
    d68570c View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#81412 - hyd-dev:array-assume-init-wrong-ass…

    …ertion, r=m-ou-se
    
    Fix assertion in `MaybeUninit::array_assume_init()` for zero-length arrays
    
    That assertion has a false positive ([playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=63922b8c897b04112adcdf346deb1d0e)):
    ```rust
    #![feature(maybe_uninit_array_assume_init)]
    
    use std::mem::MaybeUninit;
    
    enum Uninhabited {}
    
    fn main() {
        unsafe {
            // thread 'main' panicked at 'attempted to instantiate uninhabited type `Uninhabited`'
            MaybeUninit::<Uninhabited>::array_assume_init([]);
        }
    }
    ```
    *Previously reported in rust-lang#80600 (comment)
    
    This PR makes it ignore zero-length arrays.
    
    cc rust-lang#80908
    JohnTitor authored Jan 26, 2021
    Configuration menu
    Copy the full SHA
    b2f6c2a View commit details
    Browse the repository at this point in the history