Skip to content

Rollup of 3 pull requests#159166

Merged
rust-bors[bot] merged 12 commits into
rust-lang:mainfrom
jhpratt:rollup-l3XyKzC
Jul 12, 2026
Merged

Rollup of 3 pull requests#159166
rust-bors[bot] merged 12 commits into
rust-lang:mainfrom
jhpratt:rollup-l3XyKzC

Conversation

@jhpratt

@jhpratt jhpratt commented Jul 12, 2026

Copy link
Copy Markdown
Member

Successful merges:

Failed merges:

r? @ghost

Create a similar rollup

CoCo-Japan-pan and others added 12 commits July 11, 2026 13:34
This is mostly a cosmetic change. The current form of this function tends
to mislead people to assume it is implicitly "correct" in various ways by
invoking LLVM as an authority.

It is only sort-of correct. More specifically, LLVM mostly doesn't care,
and neither do we, except when it comes to FFI.

So, we have an arbitrary algorithm that works usefully in most cases.
It is not inherently more correct than other arbitrary algorithms, so
spell this out and weaken its contract.
…ering, r=jhpratt,Urgau

`mut` restriction lowering

This PR is part of the ongoing work to implement `mut` restrictions proposed in [RFC 3323](https://rust-lang.github.io/rfcs/3323-restrictions.html), and linked to a [GSoC proposal](https://rust-lang.zulipchat.com/#narrow/channel/421156-gsoc/topic/Project.3A.20Implementing.20impl.20and.20mut.20restrictions/with/592352432).
It implements path resolution for `mut` restrictions and lowers the resolved information to HIR.
Tracking issue: rust-lang#105077

r? @Urgau
cc @jhpratt
…tor-align, r=scottmcm

compiler: redescribe llvmlike_vector_align as rust_vector_align

This is mostly a cosmetic change. The current form of this function tends to mislead people to assume it is implicitly "correct" in various ways by invoking LLVM as an authority.

It is only sort-of correct. More specifically, LLVM mostly doesn't care, and neither do we, except when it comes to FFI.

So, we have an arbitrary algorithm that works usefully in most cases. It is not inherently more correct than other arbitrary algorithms, so spell this out and weaken its contract.
…uct, r=joshtriplett

Better comment the struct used by `{read,write}_unaligned`

To address rust-lang#159033 (comment)

r? @RalfJung
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Jul 12, 2026
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. 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. labels Jul 12, 2026
@jhpratt

jhpratt commented Jul 12, 2026

Copy link
Copy Markdown
Member Author

@bors r+ rollup=never p=5

@rust-bors

rust-bors Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

📌 Commit a768871 has been approved by jhpratt

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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 Jul 12, 2026
@rust-bors

This comment has been minimized.

@rust-bors rust-bors Bot added merged-by-bors This PR was explicitly merged by bors. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jul 12, 2026
@rust-bors

rust-bors Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

☀️ Test successful - CI
Approved by: jhpratt
Duration: 3h 15m 38s
Pushing b69e089 to main...

@rust-bors rust-bors Bot merged commit b69e089 into rust-lang:main Jul 12, 2026
14 checks passed
@rustbot rustbot added this to the 1.99.0 milestone Jul 12, 2026
@rust-timer

Copy link
Copy Markdown
Collaborator

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#159125 mut restriction lowering 2ecfd42a72176a670240347cf556a2eacba16318 (link)
#159154 compiler: redescribe llvmlike_vector_align as rust_vector_a… 4b8586683fff1c3d1d3e19581cbd7a066ff938b2 (link)
#159157 Better comment the struct used by {read,write}_unaligned 094fd17858f325e2902c4fae2a836aede03b5873 (link)

previous master: be8e82435e

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

@github-actions

Copy link
Copy Markdown
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 be8e824 (parent) -> b69e089 (this PR)

Test differences

Show 19 test diffs

Stage 1

  • [pretty] tests/pretty/hir-impl-restriction.rs: [missing] -> pass (J1)
  • [pretty] tests/pretty/hir-mut-restriction.rs: [missing] -> pass (J1)
  • [ui (polonius)] tests/ui/mut-restriction/restriction-resolution-errors.rs: [missing] -> pass (J2)
  • [ui] tests/ui/mut-restriction/restriction-resolution-errors.rs: [missing] -> pass (J4)

Stage 2

  • [pretty] tests/pretty/hir-impl-restriction.rs: [missing] -> pass (J0)
  • [pretty] tests/pretty/hir-mut-restriction.rs: [missing] -> pass (J0)
  • [ui] tests/ui/mut-restriction/restriction-resolution-errors.rs: [missing] -> pass (J3)

Additionally, 12 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 b69e089eb3ec9976ddec602bf18c3d6a8ce72512 --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. x86_64-gnu-gcc-core-tests: 10m 11s -> 14m 45s (+44.7%)
  2. x86_64-gnu-aux: 2h 2m -> 2h 56m (+44.0%)
  3. i686-gnu-2: 1h 11m -> 1h 42m (+42.7%)
  4. x86_64-gnu-next-trait-solver-polonius: 43m 39s -> 1h 1m (+41.9%)
  5. x86_64-msvc-2: 1h 49m -> 2h 29m (+36.3%)
  6. x86_64-msvc-ext1: 1h 40m -> 2h 11m (+30.7%)
  7. x86_64-mingw-2: 2h 2m -> 2h 39m (+30.0%)
  8. dist-x86_64-mingw: 1h 57m -> 2h 25m (+23.6%)
  9. aarch64-apple-macos-26: 2h 33m -> 3h 9m (+23.2%)
  10. x86_64-gnu-llvm-22-2: 1h 21m -> 1h 39m (+21.9%)
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
Copy Markdown
Collaborator

Finished benchmarking commit (b69e089): comparison URL.

Overall result: ❌ regressions - please read:

Our benchmarks found a performance regression caused by this PR.
This might be an actual regression, but it can also be just noise.

Next Steps:

  • If the regression was expected or you think it can be justified,
    please write a comment with sufficient written justification, and add
    @rustbot label: +perf-regression-triaged to it, to mark the regression as triaged.
  • If you think that you know of a way to resolve the regression, try to create
    a new PR with a fix for the regression.
  • If you do not understand the regression or you think that it is just noise,
    you can ask the @rust-lang/wg-compiler-performance working group for help (members of this group
    were already notified of this PR).

@rustbot label: +perf-regression
cc @rust-lang/wg-compiler-performance

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.1% [0.0%, 0.2%] 11
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.1% [-0.1%, -0.1%] 1
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results (secondary -2.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)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.4% [-2.4%, -2.4%] 1
All ❌✅ (primary) - - 0

Cycles

Results (primary -2.5%, secondary -2.6%)

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)
-2.5% [-2.6%, -2.3%] 2
Improvements ✅
(secondary)
-2.6% [-2.6%, -2.6%] 1
All ❌✅ (primary) -2.5% [-2.6%, -2.3%] 2

Binary size

This perf run didn't have relevant results for this metric.

Bootstrap: 488.088s -> 489.358s (0.26%)
Artifact size: 389.26 MiB -> 389.32 MiB (0.02%)

@rustbot rustbot added the perf-regression Performance regression. label Jul 12, 2026
@Kobzol

Kobzol commented Jul 12, 2026

Copy link
Copy Markdown
Member

Regression caused by #159125, a tiny regression in the include-blob stress test, no further action needed.

@rustbot label: +perf-regression-triaged

@rustbot rustbot added the perf-regression-triaged The performance regression has been triaged. label Jul 12, 2026
@jhpratt jhpratt deleted the rollup-l3XyKzC branch July 12, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. perf-regression Performance regression. perf-regression-triaged The performance regression has been triaged. rollup A PR which is a rollup 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants