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

Merged
merged 24 commits into from
Jun 26, 2024
Merged

Rollup of 10 pull requests #126979

merged 24 commits into from
Jun 26, 2024

Commits on Jun 25, 2024

  1. Change E0369 diagnostic give note information for foreign items.

    Make it easy for developers to understand why the binop cannot be applied.
    
    fixes rust-lang#125631
    surechen committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    2a6a423 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d9a3423 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b6074ff View commit details
    Browse the repository at this point in the history
  4. rewrite lto-empty to rmake

    Oneirical committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    6ba0a84 View commit details
    Browse the repository at this point in the history
  5. rewrite invalid-so to rmake

    Oneirical committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    fe2406b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ee529b7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6402909 View commit details
    Browse the repository at this point in the history
  8. fix Drop items getting leaked in Filter::next_chunk

    The optimization only makes sense for non-drop elements anyway.
    Use the default implementation for items that are Drop instead.
    
    It also simplifies the implementation.
    the8472 committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    133e7b1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2be2d77 View commit details
    Browse the repository at this point in the history
  10. regression test for leaks in the the Filter::next_chunk implementation

    previously next_chunk would forget items rejected by the filter
    the8472 committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    0d7aef9 View commit details
    Browse the repository at this point in the history
  11. Rename tcx to cx

    compiler-errors committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    275d922 View commit details
    Browse the repository at this point in the history
  12. Bump black, ruff and platformdirs

    Mainly because I encountered the following error, and we have no reason to prevent our upgrade.
    
    ```
    ERROR: pip's dependency resolver does not currently take into account all the packages that are installed.
    This behaviour is the source of the following dependency conflicts.
    virtualenv 20.25.3 requires platformdirs<5,>=3.9.1, but you have platformdirs 3.6.0 which is incompatible.
    ```
    DianQK committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    efa48bf View commit details
    Browse the repository at this point in the history
  13. Fix a span in parse_ty_bare_fn.

    It currently goes one token too far.
    
    Example: line 259 of `tests/ui/abi/compatibility.rs`:
    ```
    test_abi_compatible!(fn_fn, fn(), fn(i32) -> i32);
    ```
    This commit changes the span for the second element from `fn(),` to
    `fn()`, i.e. removes the extraneous comma.
    nnethercote committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    cf0251d View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. Configuration menu
    Copy the full SHA
    0addda6 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#126724 - nnethercote:fix-parse_ty_bare_fn-s…

    …pan, r=compiler-errors
    
    Fix a span in `parse_ty_bare_fn`.
    
    It currently goes one token too far.
    
    Example: line 259 of `tests/ui/abi/compatibility.rs`:
    ```
    test_abi_compatible!(fn_fn, fn(), fn(i32) -> i32);
    ```
    This commit changes the span for the second element from `fn(),` to `fn()`, i.e. removes the extraneous comma.
    
    This doesn't affect any tests. I found it while debugging some other code. Not a big deal but an easy fix so I figure it worth doing.
    
    r? ``@spastorino``
    matthiaskrgr committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    dd6b046 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#126812 - compiler-errors:tcx-cx, r=lcnr

    Rename `tcx` to `cx` in new solver generic code
    
    self-explanatory, should be last major churn-y rename
    
    r? lcnr
    matthiaskrgr committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    dc22ffc View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#126879 - the8472:next-chunk-filter-drop, r=…

    …cuviper
    
    fix Drop items getting leaked in Filter::next_chunk
    
    The optimization only makes sense for non-drop elements anyway. Use the default implementation for items that are Drop instead.
    
    It also simplifies the implementation.
    
    fixes rust-lang#126872
    tracking issue rust-lang#98326
    matthiaskrgr committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    cf22be1 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#126925 - surechen:fix_125631, r=compiler-er…

    …rors
    
    Change E0369 to give note informations for foreign items.
    
    Change E0369 to give note informations for foreign items.
    Make it easy for developers to understand why the binop cannot be applied.
    
    fixes rust-lang#125631
    matthiaskrgr committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    95332b8 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#126938 - RalfJung:link_section, r=compiler-…

    …errors
    
    miri: make sure we can find link_section statics even for the local crate
    
    Miri needs some way to iterate all the exported functions and "used" statics of all crates. For dependency crates, this already works fine since we can overwrite the query resonsible for computing `exported_symbols`, but it turns out for local binary crates this does not work: for binaries, `reachable_set` skips a lot of its logic and only checks `contains_extern_indicator()` and `RUSTC_STD_INTERNAL_SYMBOL`. Other flags like `CodegenFnAttrFlags::USED` are entirely ignored.
    
    This PR proposes to use the same check, `has_custom_linkage`, in binaries that we already use to drive the main workqueue of the reachability recursive traversal. I have no idea why binaries used a slightly different check that ignores `USED` -- was that deliberate or does it just not matter most of the time?
    matthiaskrgr committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    5c4ede8 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#126954 - petrochenkov:globamb, r=compiler-e…

    …rrors
    
    resolve: Tweak some naming around import ambiguities
    matthiaskrgr committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    8b3bbee View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#126964 - Oneirical:total-catestrophe, r=Kobzol

    Migrate `lto-empty`, `invalid-so` and `issue-20626` `run-make` tests to rmake.rs
    
    Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).
    matthiaskrgr committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    bf8da39 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#126968 - lqd:issue-126670, r=compiler-errors

    Don't ICE during RPITIT refinement checking for resolution errors after normalization
    
    rust-lang#126670 shows a case where resolution errors after normalization can happen during RPITIT refinement checking. Our tests didn't reach this path before, and we explicitly ICEd until we had a test. We can now delay a bug since we're sure it is reachable and have the test from the isue.
    
    The comment I added likely still needs more expert wordsmithing.
    
    r? ``@compiler-errors`` who's making me work during vacation (j/k).
    Fixes rust-lang#126670
    matthiaskrgr committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    8c6c6a7 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#126971 - DianQK:bump, r=Kobzol

    Bump black, ruff and platformdirs
    
    Mainly because I encountered the following error, and we have no reason to prevent our upgrade.
    
    ```
    ERROR: pip's dependency resolver does not currently take into account all the packages that are installed.
    This behaviour is the source of the following dependency conflicts.
    virtualenv 20.25.3 requires platformdirs<5,>=3.9.1, but you have platformdirs 3.6.0 which is incompatible.
    ```
    
    r? `@Kobzol`
    matthiaskrgr committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    ee07d90 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#126973 - chenyukang:yukang-fix-126756-unsaf…

    …e-suggestion-error, r=spastorino
    
    Fix bad replacement for unsafe extern block suggestion
    
    Fixes rust-lang#126756
    
    r? ``@spastorino``
    
    link rust-lang#123743
    matthiaskrgr committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    b272086 View commit details
    Browse the repository at this point in the history