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 9 pull requests #98480

Closed
wants to merge 34 commits into from
Closed

Commits on Apr 25, 2022

  1. Windows: Iterative remove_dir_all

    This will allow better strategies for use of memory and File handles. However, fully taking advantage of that is left to future work.
    ChrisDenton committed Apr 25, 2022
    Configuration menu
    Copy the full SHA
    8b1f85c View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2022

  1. Retry deleting a directory

    It's possible that a file in the directory is pending deletion. In that case we might succeed after a few attempts.
    ChrisDenton committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    8dc4696 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2022

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

Commits on Jun 20, 2022

  1. Configuration menu
    Copy the full SHA
    edb6c4b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f30c76a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3ea686f View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2022

  1. Fix linux tests

    rylev committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    e5402e4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1a25ac9 View commit details
    Browse the repository at this point in the history
  3. Reverse folder hierarchy

    rust-lang#91318 introduced a trait for infallible folders distinct from the fallible version.  For some reason (completely unfathomable to me now that I look at it with fresh eyes), the infallible trait was a supertrait of the fallible one: that is, all fallible folders were required to also be infallible.  Moreover the `Error` associated type was defined on the infallible trait!  It's so absurd that it has me questioning whether I was entirely sane.
    
    This trait reverses the hierarchy, so that the fallible trait is a supertrait of the infallible one: all infallible folders are required to also be fallible (which is a trivial blanket implementation).  This of course makes much more sense!  It also enables the `Error` associated type to sit on the fallible trait, where it sensibly belongs.
    
    There is one downside however: folders expose a `tcx` accessor method.  Since the blanket fallible implementation for infallible folders only has access to a generic `F: TypeFolder`, we need that trait to expose such an accessor to which we can delegate.  Alternatively it's possible to extract that accessor into a separate `HasTcx` trait (or similar) that would then be a supertrait of both the fallible and infallible folder traits: this would ensure that there's only one unambiguous `tcx` method, at the cost of a little additional boilerplate.  If desired, I can submit that as a separate PR.
    
    r? @jackh726
    eggyal committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    6ac6866 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    75203ee View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2022

  1. add new rval, pull deref early

    ouz-a committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    aa91716 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cc4f804 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3eb9e1a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e4b2b41 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2022

  1. Update FIXME comment

    Co-authored-by: Wesley Wiser <wwiser@gmail.com>
    rylev and wesleywiser authored Jun 23, 2022
    Configuration menu
    Copy the full SHA
    23d325e View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2022

  1. add test

    b-naber committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    4c4fb71 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2e3221a View commit details
    Browse the repository at this point in the history
  3. small refactor

    b-naber committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    38814fc View commit details
    Browse the repository at this point in the history
  4. address review

    b-naber committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    f39c0d6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ada2acc View commit details
    Browse the repository at this point in the history
  6. fmt

    b-naber committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    bf48b62 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    20cea3e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e80cced View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c06d8f9 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    25fe474 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2022

  1. Rollup merge of rust-lang#96412 - ChrisDenton:remove-dir-all, r=thomcc

    Windows: Iterative `remove_dir_all`
    
    This will allow better strategies for use of memory and File handles. However, fully taking advantage of that is left to future work.
    
    Note to reviewer: It's probably best to view the `remove_dir_all_recursive` as a new function. The diff is not very helpful (imho).
    Dylan-DPC authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    95bd688 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#97085 - rylev:test-issue-33172, r=wesleywiser

    Add a test for issue rust-lang#33172
    
    Adds a test confirming that rust-lang#33172 has been fixed.
    
    CDB has some surprising results as it looks like the supposedly unmangled static's symbol name is prefixed when it shouldn't be.
    
    r? ```@wesleywiser```
    
    Closes rust-lang#33172
    Dylan-DPC authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    7070a3f View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#98145 - ouz-a:some_branch, r=oli-obk

    Pull Derefer before ElaborateDrops
    
    _Follow up work to rust-lang#97025 rust-lang#96549 rust-lang#96116 rust-lang#95887 #95649_
    
    This moves `Derefer` before `ElaborateDrops` and creates a new `Rvalue` called `VirtualRef` that allows us to bypass many constraints for `DerefTemp`.
    
    r? ``@oli-obk``
    Dylan-DPC authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    9a3ac98 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#98149 - hoodmane:emscripten-pic, r=petroche…

    …nkov
    
    Set relocation_model to Pic on emscripten target
    
    So we can support dynamically linking libraries with Emscripten (otherwise we need to use nightly and `-Zbuild-std` to rebuild std with relocations).
    ```@sbc100```
    Dylan-DPC authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    de49639 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#98277 - compiler-errors:issue-93596, r=este…

    …bank
    
    Fix trait object reborrow suggestion
    
    Fixes rust-lang#93596
    
    Slightly generalizes the logic we use to suggest fix first implemented in rust-lang#95609, specifically when we have a `Sized` obligation that comes from a struct's unsized tail.
    Dylan-DPC authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    502083d View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#98297 - GuillaumeGomez:help-pocket-menu, r=…

    …notriddle
    
    Transform help popup into a pocket menu
    
    Just like we moved the settings menu into a "pocket menu", it's doing the same to the help popup.
    
    You can test it [here](https://rustdoc.crud.net/imperio/help-pocket-menu/doc/foo/index.html) and here is a screenshot:
    
    ![Screenshot from 2022-06-20 20-58-29](https://user-images.githubusercontent.com/3050060/174663718-538e9d11-3bf9-48b2-8909-f9bfe75af135.png)
    
    r? ```@jsha```
    Dylan-DPC authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    2d18932 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#98311 - eggyal:reverse-folder-hierarchy, r=…

    …jackh726
    
    Reverse folder hierarchy
    
    rust-lang#91318 introduced a trait for infallible folders distinct from the fallible version.  For some reason (completely unfathomable to me now that I look at it with fresh eyes), the infallible trait was a supertrait of the fallible one: that is, all fallible folders were required to also be infallible.  Moreover the `Error` associated type was defined on the infallible trait!  It's so absurd that it has me questioning whether I was entirely sane.
    
    This trait reverses the hierarchy, so that the fallible trait is a supertrait of the infallible one: all infallible folders are required to also be fallible (which is a trivial blanket implementation).  This of course makes much more sense!  It also enables the `Error` associated type to sit on the fallible trait, where it sensibly belongs.
    
    There is one downside however: folders expose a `tcx` accessor method.  Since the blanket fallible implementation for infallible folders only has access to a generic `F: TypeFolder`, we need that trait to expose such an accessor to which we can delegate.  Alternatively it's possible to extract that accessor into a separate `HasTcx` trait (or similar) that would then be a supertrait of both the fallible and infallible folder traits: this would ensure that there's only one unambiguous `tcx` method, at the cost of a little additional boilerplate.  If desired, I can submit that as a separate PR.
    
    r? ``@jackh726``
    Dylan-DPC authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    d6d97ca View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#98371 - compiler-errors:better-opaque-print…

    …ing, r=oli-obk
    
    Fix printing `impl trait` under binders
    
    Before, we would render `impl for<'a> Trait<'a>` like `impl Trait<for<'a> 'a>`, lol.
    Dylan-DPC authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    d9622a8 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#98429 - b-naber:use-correct-substs-discrimi…

    …nant-cast, r=lcnr
    
    Use correct substs in enum discriminant cast
    
    Fixes rust-lang#97634
    
    r? ``@lcnr``
    Dylan-DPC authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    a80dffb View commit details
    Browse the repository at this point in the history