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 11 pull requests #129831

Merged
merged 34 commits into from
Aug 31, 2024
Merged

Rollup of 11 pull requests #129831

merged 34 commits into from
Aug 31, 2024

Commits on Aug 26, 2024

  1. tidy: skip revision llvm-components check for run-make tests

    Since run-make tests do not support revisions.
    jieyouxu committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    92b1081 View commit details
    Browse the repository at this point in the history
  2. tests/run-make: add missing needs-llvm-components

    Without suitable `needs-llvm-components` directives, these tests that
    rely on target-specific codegen can fail if used with a LLVM that is
    built without the required components.
    jieyouxu committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    beaf9d1 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. Configuration menu
    Copy the full SHA
    2c141a4 View commit details
    Browse the repository at this point in the history
  2. Use helper functions to read environment variables

    This also migrates from legacy `cargo:` directives to the newer `cargo::`
    prefix.
    Zalathar committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    fcce75e View commit details
    Browse the repository at this point in the history
  3. Remove InstrProfilingBiasVar.c from the list of source files

    This file was introduced in LLVM 11, but was then removed in LLVM 13.
    Zalathar committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    b6dba99 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    25ca8a2 View commit details
    Browse the repository at this point in the history
  5. Always include WindowsMMap.c in the list of source files

    The whole file is surrounded by `#if defined(_WIN32)`, so there's no need to
    have separate logic to exclue it from non-Windows builds.
    Zalathar committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    842cda6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7f90aa5 View commit details
    Browse the repository at this point in the history
  7. Don't skip nonexistent source files

    This behaviour was introduced during the upgrade to LLVM 11. Now that the list
    of source files has been cleaned up, we can reasonably expect _all_ of the
    listed source files to be present.
    Zalathar committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    5b6ff4f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6ba72c0 View commit details
    Browse the repository at this point in the history
  9. set BOOTSTRAP_SKIP_TARGET_SANITY in opt-dist before running tests

    opt-dist overrides the stage 0 compiler with previously compiled compilers,
    which can cause confusion in bootstrap's target sanity checks. It is best to
    skip that check.
    
    Signed-off-by: onur-ozkan <[email protected]>
    onur-ozkan committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    1a74371 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2024

  1. Update the wasm-component-ld binary dependency

    This keeps it up-to-date by moving from 0.5.6 to 0.5.7. While here I've
    additionally updated some other wasm-related dependencies in the
    workspace to keep them up-to-date and try to avoid duplicate versions as
    well.
    alexcrichton committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    99558dc View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

  1. couple more crash tests

    matthiaskrgr committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    355d7c9 View commit details
    Browse the repository at this point in the history
  2. enable Miri to pass const pointers through FFI

    Co-authored-by: Ralf Jung <[email protected]>
    Strophox and RalfJung committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    7fde02e View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2024

  1. Add release notes for 1.81.0

    cuviper committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    8c19c14 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dd9fcff View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    27873f8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    99e14e3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bce176d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e3b1966 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3cec2d6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    670a78b View commit details
    Browse the repository at this point in the history
  9. Update mod.rs

    This typo looks unnecessary
    Alcaro authored Aug 31, 2024
    Configuration menu
    Copy the full SHA
    7d728e5 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#128523 - cuviper:relnotes-1.81.0, r=Mark-Si…

    …mulacrum
    
    Add release notes for 1.81.0
    
    cc ``@rust-lang/release``
    r? ``@Mark-Simulacrum``
    matthiaskrgr authored Aug 31, 2024
    Configuration menu
    Copy the full SHA
    71240e4 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#129605 - jieyouxu:needs-llvm-components, r=…

    …Mark-Simulacrum
    
    Add missing `needs-llvm-components` directives for run-make tests that need target-specific codegen
    
    Without suitable `needs-llvm-components` directives, some run-make tests exercising target-specific codegen can fail if the LLVM used is built without the necessary components. Currently, the list is:
    
    ```
    tests\run-make\print-target-list
    tests\run-make\print-to-output
    tests\run-make\print-cfg
    tests\run-make\target-without-atomic-cas
    ```
    
    This PR also skips tidy checks for revisions and `needs-llvm-components` for run-make tests since revisions are not supported.
    
    Fixes rust-lang#129390.
    Fixes rust-lang#127895.
    
    cc ``@petrochenkov`` who noticed this, thanks! Would be great if you could confirm that this fixes the test errors for you locally.
    matthiaskrgr authored Aug 31, 2024
    Configuration menu
    Copy the full SHA
    d354d4d View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#129650 - Zalathar:profiler-builtins, r=Mark…

    …-Simulacrum
    
    Clean up `library/profiler_builtins/build.rs`
    
    This PR makes a series of improvements to the long-neglected build script for `profiler_builtins`.
    
    Most notably:
    - The logic that silently skips missing source files has been removed, since it is currently unnecessary and makes build errors more confusing.
    - The script now emits `cargo::rerun-if-changed` directives for the `compiler-rt` source and include directories.
    
    Compiler behaviour and user programs should be unaffected by these changes.
    matthiaskrgr authored Aug 31, 2024
    Configuration menu
    Copy the full SHA
    6a96e7a View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#129651 - onur-ozkan:stage0-target-sanity-ch…

    …eck, r=Kobzol
    
    skip stage 0 target check if `BOOTSTRAP_SKIP_TARGET_SANITY` is set
    
    When adding a new target to `rustc` and extending `STAGE0_MISSING_TARGETS`, there is a chance that in the merge CI bootstrap target sanity check might fail [here](https://github.com/rust-lang/rust/blob/26d27b7c8729fb61fe8321fcd2ce734a79aa695d/src/bootstrap/src/core/sanity.rs#L243-L256) because the stage 0 compiler will assume to already support the new target since `opt-dist` uses the previously compiled compiler as the stage 0 compiler.
    
    This PR skips this check if `BOOTSTRAP_SKIP_TARGET_SANITY` is set, and makes `opt-dist` to set `BOOTSTRAP_SKIP_TARGET_SANITY` so bootstrap doesn't run this logic for opt-dist tests.
    
    Fixes rust-lang#127021 (comment).
    
    Zulip thread: https://rust-lang.zulipchat.com/#narrow/stream/326414-t-infra.2Fbootstrap/topic/.60STAGE0_MISSING_TARGETS.60.20seems.20to.20check.20stage1
    
    Blocker for rust-lang#127021
    matthiaskrgr authored Aug 31, 2024
    Configuration menu
    Copy the full SHA
    e3795af View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#129684 - Strophox:miri-pass-pointer-to-ffi,…

    … r=RalfJung
    
    Enable Miri to pass pointers through FFI
    
    Following rust-lang#126787, the purpose of this PR is to now enable Miri to execute native calls that make use of pointers.
    
    > <details>
    >
    > <summary> Simple example </summary>
    >
    > ```rust
    > extern "C" {
    >     fn ptr_printer(ptr: *mut i32);
    > }
    >
    > fn main() {
    >     let ptr = &mut 42 as *mut i32;
    >     unsafe {
    >         ptr_printer(ptr);
    >     }
    > }
    > ```
    > ```c
    > void ptr_printer(int *ptr) {
    >   printf("printing pointer dereference from C: %d\n", *ptr);
    > }
    > ```
    > should now show `printing pointer dereference from C: 42`.
    >
    > </details>
    
    Note that this PR does not yet implement any logic involved in updating Miri's "analysis" state (byte initialization, provenance) upon such a native call.
    
    r? ``@RalfJung``
    matthiaskrgr authored Aug 31, 2024
    Configuration menu
    Copy the full SHA
    a5fb8b9 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#129762 - alexcrichton:update-wasm-component…

    …-ld, r=jieyouxu
    
    Update the `wasm-component-ld` binary dependency
    
    This keeps it up-to-date by moving from 0.5.6 to 0.5.7. While here I've additionally updated some other wasm-related dependencies in the workspace to keep them up-to-date and try to avoid duplicate versions as well.
    matthiaskrgr authored Aug 31, 2024
    Configuration menu
    Copy the full SHA
    0afda15 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#129782 - matthiaskrgr:c, r=jieyouxu

    couple more crash tests
    
    r? ```@jieyouxu```
    matthiaskrgr authored Aug 31, 2024
    Configuration menu
    Copy the full SHA
    1e0cc8b View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#129816 - RalfJung:tidy-feature-issue-mismat…

    …ch, r=compiler-errors
    
    tidy: say which feature gate has a stability issue mismatch
    
    This gives some valuable context to what the error is actually about :)
    matthiaskrgr authored Aug 31, 2024
    Configuration menu
    Copy the full SHA
    08b813b View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#129818 - RalfJung:const-stability, r=compil…

    …er-errors
    
    make the const-unstable-in-stable error more clear
    
    The default should be to add `rustc_const_unstable`, not `rustc_allow_const_fn_unstable`.
    
    Also I discovered our check for missing const stability attributes on stable functions -- but strangely that check only kicks in for "reachable" functions. `check_missing_stability` checks for reachability since all reachable functions must have a stability attribute, but I would say if a function has `#[stable]` it should also have const-stability attributes regardless of reachability.
    matthiaskrgr authored Aug 31, 2024
    Configuration menu
    Copy the full SHA
    b8b2a65 View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#129824 - GuillaumeGomez:code-example-button…

    …s-mobile, r=notriddle
    
    Fix code examples buttons not appearing on click on mobile
    
    When browsing docs on mobile today, I realized that the buttons didn't appear when I tapped on the code example.
    
    One issue: I have no idea how to add a regression test for this case...
    
    r? ``@notriddle``
    matthiaskrgr authored Aug 31, 2024
    Configuration menu
    Copy the full SHA
    828f7c8 View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#129826 - Alcaro:patch-1, r=workingjubilee

    library: Fix typo in `core::mem`
    
    This typo looks unnecessary
    matthiaskrgr authored Aug 31, 2024
    Configuration menu
    Copy the full SHA
    4151fd4 View commit details
    Browse the repository at this point in the history