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 10 pull requests #82790

Closed
wants to merge 63 commits into from
Closed

Commits on Jan 31, 2021

  1. Configuration menu
    Copy the full SHA
    f45bdcc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c3e47d9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fa76db3 View commit details
    Browse the repository at this point in the history
  4. Add missing generic

    Xavientois committed Jan 31, 2021
    Configuration menu
    Copy the full SHA
    11c49f6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    260a270 View commit details
    Browse the repository at this point in the history
  6. Fix incorrect token

    Xavientois committed Jan 31, 2021
    Configuration menu
    Copy the full SHA
    5f60a30 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    eea99f4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7e56637 View commit details
    Browse the repository at this point in the history
  9. Fix semicolon

    Xavientois committed Jan 31, 2021
    Configuration menu
    Copy the full SHA
    442de9a View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1190321 View commit details
    Browse the repository at this point in the history
  11. Add dyn for SizeHint cast

    Xavientois committed Jan 31, 2021
    Configuration menu
    Copy the full SHA
    421b40c View commit details
    Browse the repository at this point in the history
  12. Fix formatting

    Xavientois committed Jan 31, 2021
    Configuration menu
    Copy the full SHA
    265db94 View commit details
    Browse the repository at this point in the history
  13. Remove stable annotation

    Xavientois committed Jan 31, 2021
    Configuration menu
    Copy the full SHA
    93870c8 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7869371 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    c8e0f8a View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    96255f8 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    389e638 View commit details
    Browse the repository at this point in the history
  18. Remove trailing newline

    Xavientois committed Jan 31, 2021
    Configuration menu
    Copy the full SHA
    b837f3a View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    81aba38 View commit details
    Browse the repository at this point in the history
  20. Fix formatting on mod

    Xavientois committed Jan 31, 2021
    Configuration menu
    Copy the full SHA
    fc9cd4a View commit details
    Browse the repository at this point in the history
  21. Fix line length format

    Xavientois committed Jan 31, 2021
    Configuration menu
    Copy the full SHA
    7674ae1 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2021

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

Commits on Feb 28, 2021

  1. Fix jemalloc usage on OSX

    sfackler committed Feb 28, 2021
    Configuration menu
    Copy the full SHA
    6e52b23 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2021

  1. Configuration menu
    Copy the full SHA
    0ae7250 View commit details
    Browse the repository at this point in the history
  2. Remove a dead code path

    oli-obk committed Mar 4, 2021
    Configuration menu
    Copy the full SHA
    0559e50 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    09cbcdc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f6fe24a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    69d95e2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d85d82a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    da01455 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    63af264 View commit details
    Browse the repository at this point in the history
  9. Typo

    oli-obk committed Mar 4, 2021
    Configuration menu
    Copy the full SHA
    67a61b9 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    29f4aa7 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    1aedb4c View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    eddd4f0 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    eb18746 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    cfce60e View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    0a8e401 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    5bd1204 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    48167c4 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    6c7d7a6 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    14983b9 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    fd14e38 View commit details
    Browse the repository at this point in the history
  21. Corrected imports for render tests and mod files

    Due to a rebase, some edits were needed in the mod file.
    Nicholas-Baron committed Mar 4, 2021
    Configuration menu
    Copy the full SHA
    afb8220 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    f223aff View commit details
    Browse the repository at this point in the history
  23. Update rustdoc documentation

    - Remove most of the information about passes. Passes are deprecated.
    - Add `--document-private-items`; it was missing before.
    - Update `--output-format json`; it was very outdated.
    - Note that `--input-format` is deprecated.
    - Move deprecated options to the very end.
    - Move `passes.html` to the end of the table of contents. Ideally it
      would be removed altogether, but that causes mdbook not to generate the
      docs.
    jyn514 committed Mar 4, 2021
    Configuration menu
    Copy the full SHA
    dbdaa12 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    4b30625 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    91095b1 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    186f139 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    ad30c39 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    e428799 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    1683cb1 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    80fcdef View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2021

  1. Rollup merge of rust-lang#76716 - GuillaumeGomez:stop-complains-on-do…

    …c-hidden, r=jyn514
    
    Don't warn for `missing_doc_examples` when item is #[doc(hidden)]
    
    r? ```@jyn514```
    JohnTitor authored Mar 5, 2021
    Configuration menu
    Copy the full SHA
    3f41802 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#80763 - petrochenkov:pubusecrate, r=estebank

    resolve: Reduce scope of `pub_use_of_private_extern_crate` deprecation lint
    
    This lint was deny-by-default since July 2017, crater showed 7 uses on crates.io back then (rust-lang#42894 (comment)).
    
    Unfortunately, the construction `pub use foo as bar` where `foo` is `extern crate foo;` was used by an older version `bitflags`, so turning it into an error causes too many regressions.
    So, this PR reduces the scope of the lint instead of turning it into a hard error, and only turns some more rarely used components of it into errors.
    JohnTitor authored Mar 5, 2021
    Configuration menu
    Copy the full SHA
    e65024d View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#81136 - Xavientois:io_reader_size_hint, r=c…

    …ramertj
    
    Improved IO Bytes Size Hint
    
    After trying to implement better `size_hint()` return values for `File` in [this PR](rust-lang#81044) and changing to implementing it for `BufReader` in [this PR](rust-lang#81052), I have arrived at this implementation that provides tighter bounds for the `Bytes` iterator of various readers including `BufReader`, `Empty`, and `Chain`.
    
    Unfortunately, for `BufReader`, the size_hint only improves after calling `fill_buffer` due to it using the contents of the buffer for the hint. Nevertheless, the the tighter bounds  should result in better pre-allocation of space to handle the contents of the `Bytes` iterator.
    
    Closes rust-lang#81052
    JohnTitor authored Mar 5, 2021
    Configuration menu
    Copy the full SHA
    0863a46 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#82088 - Nicholas-Baron:shorten_html_render,…

    … r=GuillaumeGomez
    
    Shorten html::render
    
    The `mod.rs` for librustdoc's `html::render` was over 3,000 lines. This PR reduces it to around 2,300 by
    1. Moving `Context` and associated `impl`s to a separate file
    2. Moving the `print_item` function and its helpers to a separate file
    3. Moving `write_shared` and `write_minify` to their own file
    
    Related to issue rust-lang#60302.
    Edit 1: `SharedContext` and related `impl`s is only 72 lines and so will not be moved.
    JohnTitor authored Mar 5, 2021
    Configuration menu
    Copy the full SHA
    8c786c8 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#82642 - sfackler:jemalloc-zone, r=pnkfelix

    Fix jemalloc usage on OSX
    
    Closes rust-lang#82423
    JohnTitor authored Mar 5, 2021
    Configuration menu
    Copy the full SHA
    a482925 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#82690 - jyn514:remove-pass-docs, r=Manishearth

    Update rustdoc documentation
    
    - Remove most of the information about passes. Passes are deprecated.
    - Add `--document-private-items`; it was missing before.
    - Update `--output-format json`; it was very outdated.
    - Note that `--input-format` is deprecated.
    - Move deprecated options to the very end.
    
    Closes rust-lang#82675.
    
    r? ```@Manishearth```
    JohnTitor authored Mar 5, 2021
    Configuration menu
    Copy the full SHA
    65943f7 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#82752 - JohnTitor:gat-ice-test, r=jackh726

    Add a regression test for issue-81712
    
    Fixes rust-lang#81712, also fixes rust-lang#79768 as duplicate.
    r? ``@jackh726``
    JohnTitor authored Mar 5, 2021
    Configuration menu
    Copy the full SHA
    8aed2a0 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#82764 - m-ou-se:map-try-insert, r=Amanieu

    Add {BTreeMap,HashMap}::try_insert
    
    `{BTreeMap,HashMap}::insert(key, new_val)` returns `Some(old_val)` if the key was already in the map. It's often useful to assert no duplicate values are inserted.
    
    We experimented with `map.insert(key, val).unwrap_none()` (rust-lang#62633), but decided that that's not the kind of method we'd like to have on `Option`s.
    
    `insert` always succeeds because it replaces the old value if it exists. One could argue that `insert()` is never the right method for panicking on duplicates, since already handles that case by replacing the value, only allowing you to panic after that already happened.
    
    This PR adds a `try_insert` method that instead returns a `Result::Err` when the key already exists. This error contains both the `OccupiedEntry` and the value that was supposed to be inserted. This means that unwrapping that result gives more context:
    ```rust
        map.insert(10, "world").unwrap_none();
        // thread 'main' panicked at 'called `Option::unwrap_none()` on a `Some` value: "hello"', src/main.rs:8:29
    ```
    
    ```rust
        map.try_insert(10, "world").unwrap();
        // thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value:
        // OccupiedError { key: 10, old_value: "hello", new_value: "world" }', src/main.rs:6:33
    ```
    
    It also allows handling the failure in any other way, as you have full access to the `OccupiedEntry` and the value.
    
    `try_insert` returns a reference to the value in case of success, making it an alternative to `.entry(key).or_insert(value)`.
    
    r? `@Amanieu`
    
    Fixes rust-lang/rfcs#3092
    JohnTitor authored Mar 5, 2021
    Configuration menu
    Copy the full SHA
    dcf63d4 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#82765 - oli-obk:polymorphization_regression…

    …, r=davidtwco
    
    Fix polymorphization ICE on associated types in trait decls using const generics in bounds
    
    r? ``@davidtwco``
    
    only the last commit actually changes something
    JohnTitor authored Mar 5, 2021
    Configuration menu
    Copy the full SHA
    22de90c View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#82770 - m-ou-se:assert-match, r=joshtriplett

    Add assert_matches macro.
    
    This adds `assert_matches!(expression, pattern)`.
    
    Unlike the other asserts, this one ~~consumes the expression~~ may consume the expression, to be able to match the pattern. (It could add a `&` implicitly, but that's noticable in the pattern, and will make a consuming guard impossible.)
    
    See rust-lang#62633 (comment)
    
    This re-uses the same `left: .. right: ..` output as the `assert_eq` and `assert_ne` macros, but with the pattern as the right part:
    
    assert_eq:
    ```
    assertion failed: `(left == right)`
      left: `Some("asdf")`,
     right: `None`
    ```
    assert_matches:
    ```
    assertion failed: `(left matches right)`
      left: `Ok("asdf")`,
     right: `Err(_)`
    ```
    
    cc `@cuviper`
    JohnTitor authored Mar 5, 2021
    Configuration menu
    Copy the full SHA
    a910b04 View commit details
    Browse the repository at this point in the history