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 8 pull requests #103727

Merged
merged 26 commits into from
Oct 29, 2022
Merged

Rollup of 8 pull requests #103727

merged 26 commits into from
Oct 29, 2022

Commits on Oct 19, 2022

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

Commits on Oct 22, 2022

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

Commits on Oct 23, 2022

  1. Configuration menu
    Copy the full SHA
    e521a8d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    86c65d2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    daf3063 View commit details
    Browse the repository at this point in the history
  4. Apply suggestion

    Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
    nbdd0121 and Amanieu committed Oct 23, 2022
    Configuration menu
    Copy the full SHA
    979d1a2 View commit details
    Browse the repository at this point in the history
  5. Fix alloc size

    nbdd0121 committed Oct 23, 2022
    Configuration menu
    Copy the full SHA
    4e6d60c View commit details
    Browse the repository at this point in the history
  6. Fix windows compilation

    nbdd0121 committed Oct 23, 2022
    Configuration menu
    Copy the full SHA
    c9cca33 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2022

  1. Update src/tools/compiletest/src/runtest.rs

    Co-authored-by: Mark Rousskov <mark.simulacrum@gmail.com>
    andrewpollack and Mark-Simulacrum authored Oct 24, 2022
    Configuration menu
    Copy the full SHA
    f01608c View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2022

  1. Accept TyCtxt instead of TyCtxtAt in Ty::is_* functions

    Functions in answer:
    
    - `Ty::is_freeze`
    - `Ty::is_sized`
    - `Ty::is_unpin`
    - `Ty::is_copy_modulo_regions`
    WaffleLapkin committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    a17ccfa View commit details
    Browse the repository at this point in the history
  2. Update tooling

    WaffleLapkin committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    dc53c8f View commit details
    Browse the repository at this point in the history
  3. Update miri

    WaffleLapkin committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    c8c4971 View commit details
    Browse the repository at this point in the history
  4. Ignore test on mingw32

    nbdd0121 committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    bfac2da View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2022

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

Commits on Oct 29, 2022

  1. Configuration menu
    Copy the full SHA
    4b35313 View commit details
    Browse the repository at this point in the history
  2. Rename some OwnerId fields.

    spastorino noticed some silly expressions like `item_id.def_id.def_id`.
    
    This commit renames several `def_id: OwnerId` fields as `owner_id`, so
    those expressions become `item_id.owner_id.def_id`.
    
    `item_id.owner_id.local_def_id` would be even clearer, but the use of
    `def_id` for values of type `LocalDefId` is *very* widespread, so I left
    that alone.
    nnethercote committed Oct 29, 2022
    Configuration menu
    Copy the full SHA
    c8c25ce View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f0234f1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0ef36b8 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#102634 - andrewpollack:refactor-test-rustcf…

    …lags, r=Mark-Simulacrum
    
    compiletest: Refactor test rustcflags
    
    Refactoring `host-rustcflags` and `target-rustcflags` from `Option<String>` to `Vec<String>`
    
    Ref: rust-lang#102438
    
    r? `@Mark-Simulacrum`
    GuillaumeGomez authored Oct 29, 2022
    Configuration menu
    Copy the full SHA
    73e7c3a View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#102721 - nbdd0121:panic, r=Amanieu

    Prevent foreign Rust exceptions from being caught
    
    Fix rust-lang#102715
    
    Use the address of a static variable (which is guaranteed to be unique per copy of std) to tell apart if a Rust exception comes from local or foreign Rust code, and abort for the latter.
    GuillaumeGomez authored Oct 29, 2022
    Configuration menu
    Copy the full SHA
    6dd64d3 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#103415 - compiler-errors:tiny-perf-increase…

    …-on-diagnostic, r=TaKO8Ki
    
    filter candidates in pick probe for diagnostics
    
    Fixes rust-lang#103411, though also fine with closing this PR if my opinion (rust-lang#103411 (comment)) is shared that this doesn't need to  be fixed.
    
    ```
    ~/rust3$ time rustc +nightly ~/test.rs 2>/dev/null
    
    real    0m4.853s
    user    0m4.837s
    sys     0m0.016s
    
    ~/rust3$ time rustc +rust3 ~/test.rs 2>/dev/null
    
    real    0m0.193s
    user    0m0.169s
    sys     0m0.024s
    ```
    
    Also fixes rust-lang#103427.
    GuillaumeGomez authored Oct 29, 2022
    Configuration menu
    Copy the full SHA
    07b5c6b View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#103618 - nnethercote:rename-OwnerId-fields,…

    … r=compiler-errors
    
    Rename some `OwnerId` fields.
    
    `@spastorino` noticed some silly expressions like `item_id.def_id.def_id`.
    
    This commit renames several `def_id: OwnerId` fields as `owner_id`, so those expressions become `item_id.owner_id.def_id`.
    
    `item_id.owner_id.local_def_id` would be even clearer, but the use of `def_id` for values of type `LocalDefId` is *very* widespread, so I left that alone.
    
    r? `@compiler-errors`
    GuillaumeGomez authored Oct 29, 2022
    Configuration menu
    Copy the full SHA
    692a22e View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#103625 - WaffleLapkin:no_tyctxt_dogs_allowe…

    …d, r=compiler-errors
    
    Accept `TyCtxt` instead of `TyCtxtAt` in `Ty::is_*` functions
    
    Functions in answer:
    
    - `Ty::is_freeze`
    - `Ty::is_sized`
    - `Ty::is_unpin`
    - `Ty::is_copy_modulo_regions`
    
    This allows to remove a lot of useless `.at(DUMMY_SP)`, making the code a bit nicer :3
    
    r? `@compiler-errors`
    GuillaumeGomez authored Oct 29, 2022
    Configuration menu
    Copy the full SHA
    2414a4c View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#103653 - GuillaumeGomez:missing-impl-privat…

    …e-json, r=notriddle
    
    Add missing impl blocks for item reexported from private mod in JSON output
    
    Fixes rust-lang#102583.
    
    Since we don't inline for the JSON output, the impl blocks from private modules are not present when we generate the output. To go around this limitation, in case the impl block doesn't have `#[doc(hidden)]` and is implementing a public item, we don't strip it.
    
    cc `@fmease` `@aDotInTheVoid`
    r? `@notriddle`
    GuillaumeGomez authored Oct 29, 2022
    Configuration menu
    Copy the full SHA
    05ab16b View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#103699 - compiler-errors:dyn-star-cast-bad,…

    … r=TaKO8Ki
    
    Emit proper error when casting to `dyn*`
    
    Fixes rust-lang#103679
    GuillaumeGomez authored Oct 29, 2022
    Configuration menu
    Copy the full SHA
    679771f View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#103719 - joseluis:fix-typos-try-reserve, r=…

    …the8472
    
    fix typo in `try_reserve` method from `HashMap` and `HashSet`
    
    Currently refers to the `reserve` method, instead of `try_reserve`. Other collections like [Vec](https://doc.rust-lang.org/std/vec/struct.Vec.html#method.try_reserve) & [VecDeque](https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.try_reserve) shows it well.
    GuillaumeGomez authored Oct 29, 2022
    Configuration menu
    Copy the full SHA
    6425764 View commit details
    Browse the repository at this point in the history