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 6 pull requests #124660

Merged
merged 17 commits into from
May 3, 2024
Merged

Rollup of 6 pull requests #124660

merged 17 commits into from
May 3, 2024

Commits on Apr 28, 2024

  1. handle the targets that are missing in stage0

    Signed-off-by: onur-ozkan <[email protected]>
    onur-ozkan committed Apr 28, 2024
    Configuration menu
    Copy the full SHA
    57a5f34 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2024

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

Commits on May 3, 2024

  1. Configuration menu
    Copy the full SHA
    d9eb523 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9286151 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2c4214e View commit details
    Browse the repository at this point in the history
  4. Horizon OS: dirfd unavailable

    Meziu committed May 3, 2024
    Configuration menu
    Copy the full SHA
    bdf1eae View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3d1062c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8f47f97 View commit details
    Browse the repository at this point in the history
  7. generalize adjust_from_tcx

    Strophox committed May 3, 2024
    Configuration menu
    Copy the full SHA
    47e2cc2 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    235770c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    38181cb View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#124461 - onur-ozkan:followup-123546, r=piet…

    …roalbini
    
    handle the targets that are missing in stage0
    
    During sanity checks, we search for target names to determine if they exist in the compiler's built-in target list (`rustc --print target-list`). While a target name may be present in the stage2 compiler, it might not yet be included in stage0. This PR handles that difference.
    
    Follow-up of rust-lang#123546
    matthiaskrgr authored May 3, 2024
    Configuration menu
    Copy the full SHA
    819a5f0 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#124492 - Strophox:adjust-allocbytes, r=Ralf…

    …Jung
    
    Generalize `adjust_from_tcx` for `Allocation`
    
    Previously, `adjust_from_tcx` would take an `Allocation` and "adjust allocation from the ones in `tcx` to a custom Machine instance [...]".
    This PR generalizes this so the Machine instance can also determine the `Bytes` type of the output `Allocation`.
    
    r? `@RalfJung`
    matthiaskrgr authored May 3, 2024
    Configuration menu
    Copy the full SHA
    eaca729 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#124588 - compiler-errors:ocx, r=lcnr

    Use `ObligationCtxt` in favor of `TraitEngine` in many more places
    
    r? lcnr
    matthiaskrgr authored May 3, 2024
    Configuration menu
    Copy the full SHA
    08d9992 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#124612 - Urgau:run-make-stdin, r=jieyouxu

    Add support for inputing via stdin with run-make-support
    
    This PR adds the facility to set a input bytes that will be passed via the standard input.
    
    This is useful for testing `rustc -` (and soon `rustdoc -`).
    
    In rust-lang#124611 took the approach of having a dedicated `run` method but it is not very convenient to use and would necessitate many functions, one for success, one for fail, ...
    
    Instead this PR takes a different approach and allows setting the input bytes as if it were a parameter and when calling the (now custom) `output` function, we write the input bytes into stdin. I think this gives us maximum flexibility in the implementation and a simple interface for users.
    
    To test this new logic I ported `tests/run-make/stdin-non-utf8/` to an `rmake.rs` one.
    
    r? `@jieyouxu`
    matthiaskrgr authored May 3, 2024
    Configuration menu
    Copy the full SHA
    c27d3d5 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#124613 - GuillaumeGomez:fmt-run-make, r=onu…

    …r-ozkan
    
    Allow fmt to run on rmake.rs test files
    
    As discussed with `@jieyouxu,` `rmake.rs` from the `run-make` testsuite would benefit from being formatted as well.
    
    Only thing needed to be done for it to work: allow support for `!` in our `rustfmt.toml` file parsing.
    
    r? `@onur-ozkan`
    matthiaskrgr authored May 3, 2024
    Configuration menu
    Copy the full SHA
    82030f2 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#124649 - Meziu:master, r=ChrisDenton

    Fix HorizonOS build broken by rust-lang#124210
    
    HorizonOS (for the Tier-3 target `armv6k-nintendo-3ds`) does not support `dirfd()`, as many other similar targets.
    matthiaskrgr authored May 3, 2024
    Configuration menu
    Copy the full SHA
    a7f4a2e View commit details
    Browse the repository at this point in the history