Skip to content

Rollup of 9 pull requests #142492

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

Merged
merged 40 commits into from
Jun 14, 2025
Merged

Rollup of 9 pull requests #142492

merged 40 commits into from
Jun 14, 2025

Conversation

matthiaskrgr
Copy link
Member

@matthiaskrgr matthiaskrgr commented Jun 14, 2025

Successful merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

RalfJung and others added 30 commits June 9, 2025 14:17
The unexpected configs are now unused or known to `rustc` in our CI.
This allows UTF-8 characters to be printed without escapes, rather than
just ASCII.
Replace `build.rs` Rust generation with macros, using the unstable
`${concat(...)}`.

Fixes: rust-lang/compiler-builtins#947
After adding tests, the current implementation for fminimum fails when
provided a negative zero and NaN as inputs:

    ---- math::fminimum_fmaximum_num::tests::fmaximum_num_spec_tests_f64 stdout ----

    thread 'math::fminimum_fmaximum_num::tests::fmaximum_num_spec_tests_f64' panicked at libm/src/math/fminimum_fmaximum_num.rs:240:13:
    fmaximum_num(-0x0p+0, NaN)
    l: NaN (0x7ff8000000000000)
    r: -0.0 (0x8000000000000000)

    ---- math::fminimum_fmaximum_num::tests::fmaximum_num_spec_tests_f32 stdout ----

    thread 'math::fminimum_fmaximum_num::tests::fmaximum_num_spec_tests_f32' panicked at libm/src/math/fminimum_fmaximum_num.rs:240:13:
    fmaximum_num(-0x0p+0, NaN)
    l: NaN (0x7fc00000)
    r: -0.0 (0x80000000)

Add more thorough spec tests for these functions and correct the
implementations.

Canonicalization is also moved to a trait method to centralize
documentation about what it does and doesn't do.
Use a consistent ordering for top-level manifest keys, and remove those
that are now redundant (`homapage` isn't supposed to be the same as
`repository`, and `documentation` automatically points to docs.rs now).
Now that this repository is a subtree, we have no need to continue
publishing `compiler-builtins`.
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
…anchor

Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
The config file is not needed anymore since compiler-builtins is no
longer published. Removing it will resolve a CI failure.
To prepare for merging from rust-lang/rust, set the version file to:

    d087f11 Auto merge of rust-lang#134841 - estebank:serde-attr-4, r=wesleywiser
…ub.com/rust-lang/rust

Pull recent changes from rust-lang/rust via Josh.

Upstream ref: d087f11
Filtered ref: 2d43ce8ac022170e5383f7e5a188b55564b6566a
Unimplement unsized_locals

Implements rust-lang/compiler-team#630

Tracking issue here: rust-lang#111942

Note that this just removes the feature, not the implementation, and does not touch `unsized_fn_params`. This is because it is required to support `Box<dyn FnOnce()>: FnOnce()`.

There may be more that should be removed (possibly in follow up prs)
- the `forget_unsized` function and `forget` intrinsic.
- the `unsized_locals` test directory; I've just fixed up the tests for now
- various codegen support for unsized values and allocas

cc ``@JakobDegen`` ``@oli-obk`` ``@Noratrieb`` ``@programmerjake`` ``@bjorn3``

``@rustbot`` label F-unsized_locals

Fixes rust-lang#79409
float tests: deduplicate min, max, and rounding tests

Part of rust-lang#141726

Best reviewed commit-by-commit.

- Use `assert_biteq!` in the `mod.rs` tests. This requires some trickery to make shadowing macros with imports work.
- The min, max, minimum, maximum tests in `tests/floats/f*.rs` are entirely subsumed by what we already have in `tests/float/mod.rs`, so I just removed them.
- The rounding tests (floor etc) in `f*.rs` had more test points, so I copied them over. They didn't have `0.5` and `-0.5` though which seem like interesting points in particular regarding the sign of the resulting zero if that's what it sounds to, and they didn't max min/max/inf/nan tests, so this was really a merger of both tests.

r? ``@tgross35``
…workingjubilee

variadic functions: remove list of supported ABIs from error

I think this list is problematic for multiple reasons:
- It is bound to go out-of-date as it is in a very different place from where we actually define which functions support varagrs (`fn supports_varargs`).
- Many of the ABIs we list only work on some targets; it makes no sense to mention "aapcs" as a possible ABI when building for x86_64. (This led to a lot of confusion in rust-lang#110505 where the author thought they should use "cdecl" and then were promptly told that "cdecl" is not a legal ABI on their target.)
- Typically, when the programmer wrote `extern "foobar"`, it is because they need the "foobar" ABI. It is of little use to tell them that there are other ABIs with which varargs would work.

Cc ``@workingjubilee``
…ggestion, r=WaffleLapkin

Fix incorrect suggestion when calling an associated type with a type anchor

`sugg_span` here is the span of the call expression.
That span here is the `<Self>::Assoc`, which is exactly what we need here (even though I would expect it to include the arguments, but I guess it doesn't)

r? ``@WaffleLapkin``
One commit with failing tests and one that fixes it for reviewability

closes rust-lang#142473
Remove unneeded lifetime bound from signature of BTreeSet::extract_if

One way to observe the difference between these signatures, using 0 explicit lifetimes and 0 contrived where-clauses:

```rust
use std::collections::btree_set::{BTreeSet, ExtractIf};
use std::ops::RangeFull;

fn repro(
    set: &mut BTreeSet<i32>,
    predicate: impl Fn(i32) -> bool,
) -> ExtractIf<i32, RangeFull, impl FnMut(&i32) -> bool> {
    set.extract_if(.., move |x| predicate(*x))
}
```

**Before:**

```console
error[E0311]: the parameter type `impl Fn(i32) -> bool` may not live long enough
 --> src/lib.rs:8:5
  |
5 |     set: &mut BTreeSet<i32>,
  |          ------------------ the parameter type `impl Fn(i32) -> bool` must be valid for the anonymous lifetime defined here...
...
8 |     set.extract_if(.., move |x| predicate(*x))
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `impl Fn(i32) -> bool` will meet its required lifetime bounds
  |
help: consider adding an explicit lifetime bound
  |
4 ~ fn repro<'a>(
5 ~     set: &'a mut BTreeSet<i32>,
6 ~     predicate: impl Fn(i32) -> bool + 'a,
7 ~ ) -> ExtractIf<'a, i32, RangeFull, impl FnMut(&i32) -> bool> {
  |
```

**After:** compiles success.

- Tracking issue: rust-lang#70530
Update the `compiler-builtins` subtree

Update the Josh subtree to rust-lang/compiler-builtins@7c46e921c117.

r? `@ghost`
@rustbot rustbot added A-compiler-builtins Area: compiler-builtins (https://github.com/rust-lang/compiler-builtins) A-rustc-dev-guide Area: rustc-dev-guide A-tidy Area: The tidy tool O-unix Operating system: Unix-like S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output. rollup A PR which is a rollup labels Jun 14, 2025
@matthiaskrgr
Copy link
Member Author

@bors r+ rollup=never p=5

@bors
Copy link
Collaborator

bors commented Jun 14, 2025

📌 Commit fd1f479 has been approved by matthiaskrgr

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 14, 2025
@bors
Copy link
Collaborator

bors commented Jun 14, 2025

⌛ Testing commit fd1f479 with merge 9822e3d...

@bors
Copy link
Collaborator

bors commented Jun 14, 2025

☀️ Test successful - checks-actions
Approved by: matthiaskrgr
Pushing 9822e3d to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jun 14, 2025
@bors bors merged commit 9822e3d into rust-lang:master Jun 14, 2025
11 checks passed
@rustbot rustbot added this to the 1.89.0 milestone Jun 14, 2025
@rust-timer
Copy link
Collaborator

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#140593 Temporary lifetime extension through tuple struct and tuple… 0dc45e2251f95000ba0f3bec6f321e3e5ad4f4fa (link)
#141399 [rustdoc] Give more information into extracted doctest info… 66c1c705410112ae91d488dd5bd62bf4a257715b (link)
#141493 Delegate <SocketAddr as Debug> to ByteStr 02f57484702dfbfeffc03d06e8d3b1a424d29dfe (link)
#141811 Unimplement unsized_locals 79b8e1364671ed281ae8320bbb141ecaa87590c5 (link)
#142243 float tests: deduplicate min, max, and rounding tests 0be24672982843827d366f4ddad3487760a2ba52 (link)
#142464 variadic functions: remove list of supported ABIs from error bb12595192fe4af1c162ea8d4c6ba4c054f83519 (link)
#142477 Fix incorrect suggestion when calling an associated type wi… 1022f6060478991ecf64f57cd7b8dd3740c67e34 (link)
#142484 Remove unneeded lifetime bound from signature of BTreeSet::… c2dda74e5630fa0f113e195a3e490d7a30ade7bb (link)
#142489 Update the compiler-builtins subtree 73e9fa2e794c833e9dd8b3a6bcac587f1a60e4fb (link)

previous master: 64033a4ee5

In the case of a perf regression, run the following command for each PR you suspect might be the cause: @rust-timer build $SHA

Copy link
Contributor

What is this? This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.

Comparing 64033a4 (parent) -> 9822e3d (this PR)

Test differences

Show 151 test diffs

Stage 1

  • [crashes] tests/crashes/79409.rs: pass -> [missing] (J0)
  • [ui] tests/rustdoc-ui/extract-doctests-result.rs: [missing] -> pass (J0)
  • [ui] tests/ui/associated-types/associated-type-call.rs: [missing] -> pass (J0)
  • [ui] tests/ui/consts/issue-54224.rs: pass -> [missing] (J0)
  • [ui] tests/ui/error-codes/E0161.rs: [missing] -> pass (J0)
  • [ui] tests/ui/error-codes/E0161.rs#base: pass -> [missing] (J0)
  • [ui] tests/ui/error-codes/E0161.rs#ul: pass -> [missing] (J0)
  • [ui] tests/ui/extern/unsized-extern-derefmove.rs: [missing] -> pass (J0)
  • [ui] tests/ui/lifetimes/temporary-lifetime-extension-tuple-ctor.rs: [missing] -> pass (J0)
  • [ui] tests/ui/unsized-locals/yote.rs: [missing] -> pass (J0)
  • floats::f32::test_ceil: pass -> [missing] (J1)
  • floats::f32::test_floor: pass -> [missing] (J1)
  • floats::f32::test_fract: pass -> [missing] (J1)
  • floats::f32::test_max_nan: pass -> [missing] (J1)
  • floats::f32::test_maximum: pass -> [missing] (J1)
  • floats::f32::test_min_nan: pass -> [missing] (J1)
  • floats::f32::test_minimum: pass -> [missing] (J1)
  • floats::f32::test_round: pass -> [missing] (J1)
  • floats::f32::test_round_ties_even: pass -> [missing] (J1)
  • floats::f32::test_trunc: pass -> [missing] (J1)
  • floats::f64::test_ceil: pass -> [missing] (J1)
  • floats::f64::test_floor: pass -> [missing] (J1)
  • floats::f64::test_fract: pass -> [missing] (J1)
  • floats::f64::test_max_nan: pass -> [missing] (J1)
  • floats::f64::test_min_nan: pass -> [missing] (J1)
  • floats::f64::test_round: pass -> [missing] (J1)
  • floats::f64::test_round_ties_even: pass -> [missing] (J1)
  • floats::f64::test_trunc: pass -> [missing] (J1)
  • floats::f128::test_ceil: pass -> [missing] (J2)
  • floats::f128::test_fract: pass -> [missing] (J2)
  • floats::f128::test_max_nan: pass -> [missing] (J2)
  • floats::f128::test_maximum: pass -> [missing] (J2)
  • floats::f128::test_min_nan: pass -> [missing] (J2)
  • floats::f128::test_minimum: pass -> [missing] (J2)
  • floats::f128::test_round: pass -> [missing] (J2)
  • floats::f128::test_round_ties_even: pass -> [missing] (J2)
  • floats::f128::test_trunc: pass -> [missing] (J2)
  • floats::f16::test_ceil: pass -> [missing] (J5)
  • floats::f16::test_floor: pass -> [missing] (J5)
  • floats::f16::test_fract: pass -> [missing] (J5)
  • floats::f16::test_max_nan: pass -> [missing] (J5)
  • floats::f16::test_maximum: pass -> [missing] (J5)
  • floats::f16::test_min_nan: pass -> [missing] (J5)
  • floats::f16::test_minimum: pass -> [missing] (J5)
  • floats::f16::test_round: pass -> [missing] (J5)
  • floats::f16::test_round_ties_even: pass -> [missing] (J5)
  • floats::f16::test_trunc: pass -> [missing] (J5)
  • doctest::tests::test_extracted_doctest_doctest_code_field: [missing] -> pass (J7)
  • doctest::tests::test_extracted_doctest_wrapper_field: [missing] -> pass (J7)
  • doctest::tests::test_extracted_doctest_wrapper_field_with_info: [missing] -> pass (J7)
  • floats::f128::test_floor: pass -> [missing] (J8)
  • os::unix::net::tests::abstract_socket_addr_debug: [missing] -> pass (J9)

Stage 2

  • [ui] tests/ui/associated-types/associated-type-call.rs: [missing] -> pass (J3)
  • [ui] tests/ui/consts/issue-54224.rs: pass -> [missing] (J3)
  • [ui] tests/ui/error-codes/E0161.rs: [missing] -> pass (J3)
  • [ui] tests/ui/error-codes/E0161.rs#base: pass -> [missing] (J3)
  • [ui] tests/ui/error-codes/E0161.rs#ul: pass -> [missing] (J3)
  • [ui] tests/ui/extern/unsized-extern-derefmove.rs: [missing] -> pass (J3)
  • [ui] tests/ui/lifetimes/temporary-lifetime-extension-tuple-ctor.rs: [missing] -> pass (J3)
  • [ui] tests/ui/unsized-locals/yote.rs: [missing] -> pass (J3)
  • [ui] tests/rustdoc-ui/extract-doctests-result.rs: [missing] -> pass (J4)
  • [crashes] tests/crashes/79409.rs: pass -> [missing] (J6)

Additionally, 89 doctest diffs were found. These are ignored, as they are noisy.

Job group index

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard 9822e3dc15b5940626a186a57f877cf784b1bfb3 --output-dir test-dashboard

And then open test-dashboard/index.html in your browser to see an overview of all executed tests.

Job duration changes

  1. mingw-check-tidy: 67.6s -> 83.8s (24.0%)
  2. dist-apple-various: 6930.0s -> 5303.5s (-23.5%)
  3. x86_64-apple-1: 6945.2s -> 8479.5s (22.1%)
  4. x86_64-msvc-2: 6849.6s -> 8059.7s (17.7%)
  5. x86_64-apple-2: 4150.9s -> 4842.5s (16.7%)
  6. dist-powerpc64le-linux-musl: 5001.0s -> 5568.3s (11.3%)
  7. dist-ohos-aarch64: 4544.1s -> 4079.7s (-10.2%)
  8. dist-ohos-armv7: 4355.5s -> 3933.2s (-9.7%)
  9. x86_64-gnu-debug: 5641.3s -> 6089.9s (8.0%)
  10. dist-ohos-x86_64: 4437.0s -> 4095.7s (-7.7%)
How to interpret the job duration changes?

Job durations can vary a lot, based on the actual runner instance
that executed the job, system noise, invalidated caches, etc. The table above is provided
mostly for t-infra members, for simpler debugging of potential CI slow-downs.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (9822e3d): comparison URL.

Overall result: ❌ regressions - no action needed

@rustbot label: -perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.2% [0.2%, 0.2%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results (primary -1.2%, secondary -3.5%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-1.2% [-1.2%, -1.2%] 1
Improvements ✅
(secondary)
-3.5% [-3.5%, -3.5%] 1
All ❌✅ (primary) -1.2% [-1.2%, -1.2%] 1

Cycles

Results (secondary -1.4%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
2.2% [2.2%, 2.2%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-5.1% [-5.1%, -5.1%] 1
All ❌✅ (primary) - - 0

Binary size

Results (secondary 0.0%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.0% [0.0%, 0.0%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Bootstrap: 757.347s -> 757.645s (0.04%)
Artifact size: 372.22 MiB -> 372.28 MiB (0.02%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-compiler-builtins Area: compiler-builtins (https://github.com/rust-lang/compiler-builtins) A-rustc-dev-guide Area: rustc-dev-guide A-tidy Area: The tidy tool merged-by-bors This PR was explicitly merged by bors. O-unix Operating system: Unix-like rollup A PR which is a rollup S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. T-rustdoc-frontend Relevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.
Projects
None yet
Development

Successfully merging this pull request may close these issues.