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

Merged
merged 25 commits into from
May 29, 2024
Merged

Rollup of 8 pull requests #125691

merged 25 commits into from
May 29, 2024

Commits on Apr 25, 2024

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

Commits on May 27, 2024

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

Commits on May 28, 2024

  1. rewrite lto-smoke to rmake

    Oneirical committed May 28, 2024
    Configuration menu
    Copy the full SHA
    d9d013b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    634270e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b119e42 View commit details
    Browse the repository at this point in the history
  4. Fix run-make-support doc errors

    error: redundant explicit link target because label contains path that resolves to same destination
    ChrisDenton committed May 28, 2024
    Configuration menu
    Copy the full SHA
    ef9e6ca View commit details
    Browse the repository at this point in the history
  5. Enable a few tests on macOS

    madsmtm committed May 28, 2024
    Configuration menu
    Copy the full SHA
    d82be82 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    37ae2b6 View commit details
    Browse the repository at this point in the history
  7. Make more of the test suite run on Mac Catalyst

    This adds the `only-apple`/`ignore-apple` compiletest directive, and
    uses that basically everywhere instead of `only-macos`/`ignore-macos`.
    
    Some of the updates in `run-make` are a bit redundant, as they use
    `ignore-cross-compile` and won't run on iOS - but using Apple in these
    is still more correct, so I've made that change anyhow.
    madsmtm committed May 28, 2024
    Configuration menu
    Copy the full SHA
    e6b9bb7 View commit details
    Browse the repository at this point in the history
  8. Silence some resolve errors when there have been glob import errors

    When encountering `use foo::*;` where `foo` fails to be found, and we later
    encounter resolution errors, we silence those later errors.
    
    A single case of the above, for an *existing* import on a big codebase would
    otherwise have a huge number of knock-down spurious errors.
    
    Ideally, instead of a global flag to silence all subsequent resolve errors,
    we'd want to introduce an unameable binding in the appropriate rib as a
    sentinel when there's a failed glob import, so when we encounter a resolve
    error we can search for that sentinel and if found, and only then, silence
    that error. The current approach is just a quick proof of concept to
    iterate over.
    
    Partially address rust-lang#96799.
    estebank committed May 28, 2024
    Configuration menu
    Copy the full SHA
    37c54db View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    89f3651 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    cc97376 View commit details
    Browse the repository at this point in the history
  11. Remove Trace

    compiler-errors committed May 28, 2024
    Configuration menu
    Copy the full SHA
    2bd5050 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    459ce3f View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    7150839 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    5a8c1f3 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    57948c8 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2024

  1. Rollup merge of rust-lang#124251 - scottmcm:unop-ptr-metadata, r=oli-obk

    Add an intrinsic for `ptr::metadata`
    
    The follow-up to rust-lang#123840, so we can remove `PtrComponents` and `PtrRepr` from libcore entirely (well, after a bootstrap update).
    
    As discussed in <https://rust-lang.zulipchat.com/#narrow/stream/189540-t-compiler.2Fwg-mir-opt/topic/.60ptr_metadata.60.20in.20MIR/near/435637808>, this introduces `UnOp::PtrMetadata` taking a raw pointer and returning the associated metadata value.
    
    By no longer going through a `union`, this should also help future PRs better optimize pointer operations.
    
    r? ``@oli-obk``
    jieyouxu committed May 29, 2024
    Configuration menu
    Copy the full SHA
    2d3b1e0 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#124320 - Urgau:print-check-cfg, r=petrochenkov

    Add `--print=check-cfg` to get the expected configs
    
    This PR adds a new `--print` variant `check-cfg` to get the expected configs.
    
    Details and rational can be found on the MCP: rust-lang/compiler-team#743
    
    ``@rustbot`` label +F-check-cfg +S-waiting-on-MCP
    r? ``@petrochenkov``
    jieyouxu committed May 29, 2024
    Configuration menu
    Copy the full SHA
    7e441a1 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#125226 - madsmtm:fix-mac-catalyst-tests, r=…

    …workingjubilee
    
    Make more of the test suite run on Mac Catalyst
    
    Combined with rust-lang#125225, the only failing parts of the test suite are in `tests/rustdoc-js`, `tests/rustdoc-js-std` and `tests/debuginfo`. Tested with:
    ```console
    ./x test --target=aarch64-apple-ios-macabi library/std
    ./x test --target=aarch64-apple-ios-macabi --skip=tests/rustdoc-js --skip=tests/rustdoc-js-std --skip=tests/debuginfo tests
    ```
    
    Will probably put up a PR later to enable _running_ on (not just compiling for) Mac Catalyst in CI, though not sure where exactly I should do so? `src/ci/github-actions/jobs.yml`?
    
    Note that I've deliberately _not_ enabled stack overflow handlers on iOS/tvOS/watchOS/visionOS (see rust-lang#25872), but rather just skipped those tests, as it uses quite a few APIs that I'd be weary about getting rejected by the App Store (note that Swift doesn't do it on those platforms either).
    
    r? ``@workingjubilee``
    
    CC ``@thomcc``
    
    ``@rustbot`` label O-ios O-apple
    jieyouxu committed May 29, 2024
    Configuration menu
    Copy the full SHA
    3cc59ae View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#125381 - estebank:issue-96799, r=petrochenkov

    Silence some resolve errors when there have been glob import errors
    
    When encountering `use foo::*;` where `foo` fails to be found, and we later encounter resolution errors, we silence those later errors.
    
    A single case of the above, for an *existing* import on a big codebase would otherwise have a huge number of knock-down spurious errors.
    
    Ideally, instead of a global flag to silence all subsequent resolve errors, we'd want to introduce an unnameable binding in the appropriate rib as a sentinel when there's a failed glob import, so when we encounter a resolve error we can search for that sentinel and if found, and only then, silence that error. The current approach is just a quick proof of concept to iterate over.
    
    Partially address rust-lang#96799.
    jieyouxu committed May 29, 2024
    Configuration menu
    Copy the full SHA
    bc1a069 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#125633 - RalfJung:miri-no-copy, r=saethlin

    miri: avoid making a full copy of all new allocations
    
    Hopefully fixes rust-lang/miri#3637
    
    r? ``@saethlin``
    jieyouxu committed May 29, 2024
    Configuration menu
    Copy the full SHA
    305137d View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#125638 - Oneirical:lets-find-some-tests, r=…

    …jieyouxu
    
    Rewrite `lto-smoke`, `simple-rlib` and `mixing-deps` `run-make` tests in `rmake.rs` format
    
    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).
    jieyouxu committed May 29, 2024
    Configuration menu
    Copy the full SHA
    7e93a63 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#125639 - ChrisDenton:run-make-support-doc, …

    …r=onur-ozkan
    
    Support `./x doc run-make-support --open`
    
    Having easy access to the run-make-support documentation is invaluable when creating run-make tests using the new Rust recipes.
    jieyouxu committed May 29, 2024
    Configuration menu
    Copy the full SHA
    98f3217 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#125664 - compiler-errors:trace-tweaks, r=lcnr

    Tweak relations to no longer rely on `TypeTrace`
    
    Remove `At::trace`, and inline all of the `Trace::equate`,etc methods into `At`.
    
    The only nontrivial change is that we use `AliasTerm` to relate two unevaluated consts in the old-solver impl of `ConstEquate`, since `AliasTerm` does implement `ToTrace` and will relate the args structurally (shallowly).
    
    r? lcnr
    jieyouxu committed May 29, 2024
    Configuration menu
    Copy the full SHA
    4c12282 View commit details
    Browse the repository at this point in the history