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

Merged
merged 32 commits into from
Jun 25, 2022
Merged

Rollup of 9 pull requests #98486

merged 32 commits into from
Jun 25, 2022

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 15, 2022

  1. Configuration menu
    Copy the full SHA
    ab3a2a0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    531752f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6f7d193 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a27aace View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2022

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

Commits on Jun 20, 2022

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

Commits on Jun 21, 2022

  1. 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
  2. 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. point to type param definition when not finding variant, method and a…

    …ssoc type
    
    use `def_ident_span` , `body_owner_def_id` instead of `in_progress_typeck_results`, `guess_head_span`
    
    use `body_id.owner` directly
    
    add description to label
    TaKO8Ki committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    402dceb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6a6910e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d23eea5 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2022

  1. Configuration menu
    Copy the full SHA
    3c7f1f1 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. take advantage of a labelled block

    Co-authored-by: Michael Goulet <[email protected]>
    WaffleLapkin and compiler-errors committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    e25129b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1dfb53b 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).
    matthiaskrgr authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    d7388d1 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#98126 - fortanix:raoul/mitigate_stale_data_…

    …vulnerability, r=cuviper
    
    Mitigate MMIO stale data vulnerability
    
    Intel publicly disclosed the MMIO stale data vulnerability on June 14. To mitigate this vulnerability, compiler changes are required for the `x86_64-fortanix-unknown-sgx` target.
    cc: ````@jethrogb````
    matthiaskrgr authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    a130521 View commit details
    Browse the repository at this point in the history
  3. 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`````
    matthiaskrgr authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    45ef23d View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#98194 - m-ou-se:leak-locked-pthread-mutex, …

    …r=Amanieu
    
    Leak pthread_{mutex,rwlock}_t if it's dropped while locked.
    
    Fixes rust-lang#85434.
    matthiaskrgr authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    ecefccd View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#98298 - TaKO8Ki:point-to-type-param-definit…

    …ion, r=compiler-errors
    
    Point to type parameter definition when not finding variant, method and associated item
    
    fixes rust-lang#77391
    matthiaskrgr authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    8257ba2 View commit details
    Browse the repository at this point in the history
  6. 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````
    matthiaskrgr authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    65187f5 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#98401 - ehuss:extern-tracking, r=Dylan-DPC

    Add tracking issues to `--extern` option docs.
    matthiaskrgr authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    95ba108 View commit details
    Browse the repository at this point in the history
  8. 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```
    matthiaskrgr authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    ea07b96 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#98431 - WaffleLapkin:mut_pat_suggestions, r…

    …=compiler-errors
    
    Suggest defining variable as mutable on `&mut _` type mismatch in pats
    
    Suggest writing `mut a` where `&mut a` was written but a non-ref type provided.
    
    Since we still don't have "apply either one of the suggestions but not both" kind of thing, the interaction with the suggestion of removing `&[mut]` or moving it to the type is weird, and idk how to make it better..
    
    r? ``@compiler-errors``
    matthiaskrgr authored Jun 25, 2022
    Configuration menu
    Copy the full SHA
    1f923c2 View commit details
    Browse the repository at this point in the history