Skip to content

Remove ShallowInitBox from MIR#147862

Closed
cjgillot wants to merge 1 commit intorust-lang:mainfrom
cjgillot:noinit-box
Closed

Remove ShallowInitBox from MIR#147862
cjgillot wants to merge 1 commit intorust-lang:mainfrom
cjgillot:noinit-box

Conversation

@cjgillot
Copy link
Contributor

@cjgillot cjgillot commented Oct 18, 2025

All uses of this were removed by #148190

@rustbot rustbot added A-tidy Area: The tidy tool S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-clippy Relevant to the Clippy team. 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 Oct 18, 2025
@cjgillot
Copy link
Contributor Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rust-bors

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Oct 18, 2025
@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 18, 2025
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-bors
Copy link
Contributor

rust-bors bot commented Oct 18, 2025

💔 Test for 9c292f4 failed: CI. Failed jobs:

@rust-log-analyzer

This comment has been minimized.

@cjgillot
Copy link
Contributor Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rust-bors

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Oct 18, 2025
@rustbot rustbot added the A-rustc-dev-guide Area: rustc-dev-guide label Oct 19, 2025
@rust-bors
Copy link
Contributor

rust-bors bot commented Oct 19, 2025

☀️ Try build successful (CI)
Build commit: d4e488f (d4e488fd1cbd56d5ce97af9226cb30c35f3d8207, parent: 6380899f32599ea25615d4ccd708d0e8da652b0c)

@rust-timer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (d4e488f): comparison URL.

Overall result: ❌✅ regressions and improvements - please read the text below

Benchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @rustbot label: +perf-regression-triaged. If not, please fix the regressions and do another perf run. If its results are neutral or positive, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +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.8% [0.2%, 2.6%] 52
Regressions ❌
(secondary)
4.0% [0.2%, 23.0%] 53
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.2% [-0.3%, -0.1%] 5
All ❌✅ (primary) 0.8% [0.2%, 2.6%] 52

Max RSS (memory usage)

Results (primary 1.5%, secondary 4.4%)

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

mean range count
Regressions ❌
(primary)
1.5% [0.4%, 2.1%] 6
Regressions ❌
(secondary)
4.4% [2.3%, 7.0%] 7
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 1.5% [0.4%, 2.1%] 6

Cycles

Results (primary 2.5%, secondary 4.6%)

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

mean range count
Regressions ❌
(primary)
2.5% [2.2%, 3.0%] 4
Regressions ❌
(secondary)
7.2% [1.9%, 24.4%] 25
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-4.9% [-9.8%, -2.7%] 7
All ❌✅ (primary) 2.5% [2.2%, 3.0%] 4

Binary size

Results (primary 1.2%, secondary 9.7%)

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

mean range count
Regressions ❌
(primary)
1.4% [0.0%, 6.1%] 76
Regressions ❌
(secondary)
10.5% [0.5%, 45.5%] 36
Improvements ✅
(primary)
-0.1% [-0.3%, -0.0%] 10
Improvements ✅
(secondary)
-0.1% [-0.1%, -0.0%] 3
All ❌✅ (primary) 1.2% [-0.3%, 6.1%] 86

Bootstrap: 471.955s -> 472.273s (0.07%)
Artifact size: 390.54 MiB -> 390.72 MiB (0.05%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Oct 19, 2025
@bors
Copy link
Collaborator

bors commented Oct 19, 2025

☔ The latest upstream changes (presumably #147847) made this pull request unmergeable. Please resolve the merge conflicts.

@rust-log-analyzer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 19, 2025
@rust-bors
Copy link
Contributor

rust-bors bot commented Oct 20, 2025

☀️ Try build successful (CI)
Build commit: 9203cf8 (9203cf8b58f999e8739690665622eca20e4cd85e, parent: 4ddbb6051271237f4192333e06b8129148995eef)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (9203cf8): comparison URL.

Overall result: ❌ regressions - please read the text below

Benchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @rustbot label: +perf-regression-triaged. If not, please fix the regressions and do another perf run. If its results are neutral or positive, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +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.8% [0.2%, 2.8%] 58
Regressions ❌
(secondary)
3.8% [0.1%, 22.2%] 55
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.2% [-0.2%, -0.1%] 5
All ❌✅ (primary) 0.8% [0.2%, 2.8%] 58

Max RSS (memory usage)

Results (primary 1.3%, secondary 0.7%)

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

mean range count
Regressions ❌
(primary)
2.3% [0.6%, 4.7%] 8
Regressions ❌
(secondary)
3.4% [2.1%, 7.4%] 14
Improvements ✅
(primary)
-2.7% [-3.1%, -2.3%] 2
Improvements ✅
(secondary)
-3.9% [-4.5%, -3.1%] 8
All ❌✅ (primary) 1.3% [-3.1%, 4.7%] 10

Cycles

Results (primary 2.7%, secondary 4.1%)

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

mean range count
Regressions ❌
(primary)
2.7% [1.8%, 3.5%] 2
Regressions ❌
(secondary)
6.1% [1.2%, 23.9%] 30
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-4.6% [-8.6%, -1.7%] 7
All ❌✅ (primary) 2.7% [1.8%, 3.5%] 2

Binary size

Results (primary 1.2%, secondary 8.7%)

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

mean range count
Regressions ❌
(primary)
1.3% [0.0%, 6.4%] 76
Regressions ❌
(secondary)
9.4% [0.4%, 43.8%] 39
Improvements ✅
(primary)
-0.1% [-0.3%, -0.0%] 10
Improvements ✅
(secondary)
-0.1% [-0.1%, -0.0%] 3
All ❌✅ (primary) 1.2% [-0.3%, 6.4%] 86

Bootstrap: 471.841s -> 473.148s (0.28%)
Artifact size: 388.67 MiB -> 390.76 MiB (0.54%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 20, 2025
@bors
Copy link
Collaborator

bors commented Oct 22, 2025

☔ The latest upstream changes (presumably #147687) made this pull request unmergeable. Please resolve the merge conflicts.

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

bors commented Oct 23, 2025

☔ The latest upstream changes (presumably #147793) made this pull request unmergeable. Please resolve the merge conflicts.

@cjgillot cjgillot changed the title Remove box_new intrinsic Remove ShallowInitBox from MIR Feb 17, 2026
@cjgillot cjgillot marked this pull request as ready for review February 17, 2026 13:08
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 17, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 17, 2026

Some changes occurred to constck

cc @fee1-dead

This PR changes MIR

cc @oli-obk, @RalfJung, @JakobDegen, @vakaras

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

Some changes occurred in src/tools/clippy

cc @rust-lang/clippy

Some changes occurred in compiler/rustc_codegen_cranelift

cc @bjorn3

Some changes occurred to the CTFE machinery

cc @RalfJung, @oli-obk, @lcnr

This PR changes rustc_public

cc @oli-obk, @celinval, @ouz-a, @makai410

Some changes occurred to the CTFE / Miri interpreter

cc @rust-lang/miri

@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Feb 17, 2026
@cjgillot
Copy link
Contributor Author

r? compiler

@RalfJung
Copy link
Member

The PR description and history seem outdated now? This might be worth a clean new PR to avoid confusion.^^

@RalfJung
Copy link
Member

Either way, r=me (with an up-to-date PR description)

@cjgillot cjgillot closed this Feb 17, 2026
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 17, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Feb 18, 2026
Remove ShallowInitBox.

All uses of this were removed by rust-lang#148190
Split from rust-lang#147862

r? @RalfJung
jhpratt added a commit to jhpratt/rust that referenced this pull request Feb 18, 2026
Remove ShallowInitBox.

All uses of this were removed by rust-lang#148190
Split from rust-lang#147862

r? @RalfJung
jhpratt added a commit to jhpratt/rust that referenced this pull request Feb 18, 2026
Remove ShallowInitBox.

All uses of this were removed by rust-lang#148190
Split from rust-lang#147862

r? @RalfJung
Zalathar added a commit to Zalathar/rust that referenced this pull request Feb 18, 2026
Remove ShallowInitBox.

All uses of this were removed by rust-lang#148190
Split from rust-lang#147862

r? @RalfJung
rust-timer added a commit that referenced this pull request Feb 18, 2026
Rollup merge of #152758 - cjgillot:noinit-box, r=RalfJung

Remove ShallowInitBox.

All uses of this were removed by #148190
Split from #147862

r? @RalfJung
@cjgillot cjgillot deleted the noinit-box branch February 18, 2026 17:21
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Feb 19, 2026
Remove ShallowInitBox.

All uses of this were removed by rust-lang/rust#148190
Split from rust-lang/rust#147862

r? @RalfJung
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-rustc-dev-guide Area: rustc-dev-guide A-tidy Area: The tidy tool perf-regression Performance regression. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-clippy Relevant to the Clippy team. 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

Comments