Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Use InterpResult instead of InterpErrorKind - #166983

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
JonathanBrouwer:ctfe-regression
Dec 4, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
JonathanBrouwer:ctfe-regression

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Member

For performance, as InterpResult is smaller

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Dec 3, 2026
@JonathanBrouwer

Copy link
Copy Markdown
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Dec 3, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Dec 3, 2026
Use `InterpResult` instead of `InterpErrorKind`
@RalfJung

RalfJung commented Dec 3, 2026

Copy link
Copy Markdown
Member

Yeah InterpResult is what we use everywhere and it boxes the error.

@rust-bors

rust-bors Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 8f249fc (8f249fc24f7acd24b52c8c45bee23db99b8eeac1)
Base parent: a8e6cff (a8e6cff860164451493592a5cd65861d84a47218)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown

Finished benchmarking commit (8f249fc): comparison URL.

Overall result: no relevant changes - no action needed

Benchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up.

@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

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

Max RSS (memory usage)

Results (primary -0.2%, secondary -0.6%)

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

mean range count
Regressions ❌
(primary)
1.0% [0.4%, 4.1%] 9
Regressions ❌
(secondary)
1.2% [0.6%, 2.3%] 3
Improvements ✅
(primary)
-0.9% [-2.1%, -0.5%] 14
Improvements ✅
(secondary)
-2.3% [-6.0%, -0.5%] 3
All ❌✅ (primary) -0.2% [-2.1%, 4.1%] 23

Cycles

Results (primary -0.5%, secondary 4.2%)

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

mean range count
Regressions ❌
(primary)
0.7% [0.4%, 1.0%] 6
Regressions ❌
(secondary)
5.3% [0.8%, 8.6%] 4
Improvements ✅
(primary)
-0.9% [-2.4%, -0.4%] 16
Improvements ✅
(secondary)
-0.5% [-0.5%, -0.5%] 1
All ❌✅ (primary) -0.5% [-2.4%, 1.0%] 22

Binary size

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

Bootstrap: 475.493s -> 461.698s (-2.90%)
Artifact size: 406.64 MiB -> 406.72 MiB (0.02%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Dec 3, 2026
@JonathanBrouwer

Copy link
Copy Markdown
Member Author

Perf is neutral.
@RalfJung any preferences on merging this PR or closing this? Feel free to do whatever one of those two you like

@RalfJung

RalfJung commented Dec 3, 2026

Copy link
Copy Markdown
Member

Seems better to consistently use the same error handling pattern everywhere.

@RalfJung
RalfJung marked this pull request as ready for review December 3, 2026 14:05
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 3, 2026
@rustbot

rustbot commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred to the CTFE / Miri interpreter

cc @rust-lang/miri

Some changes occurred to the CTFE machinery

cc @RalfJung, @oli-obk, @lcnr

@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 Dec 3, 2026
@rustbot

rustbot commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

r? @folkertdev

rustbot has assigned @folkertdev.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler, mir
  • compiler, mir expanded to 79 candidates
  • Random selection from 20 candidates

@RalfJung

RalfJung commented Dec 3, 2026

Copy link
Copy Markdown
Member

r? me
@bors r+

@rustbot rustbot assigned RalfJung and unassigned folkertdev Dec 3, 2026
@rust-bors

rust-bors Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

🌟 Commit bd6caf6 has been approved by RalfJung

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 Dec 3, 2026
rust-bors Bot pushed a commit that referenced this pull request Dec 4, 2026
…uwer

Rollup of 12 pull requests

Successful merges:

 - #166944 (stdarch subtree update)
 - #166689 (Show fn spans for `lint::c_buffer_length`)
 - #166983 (Use `InterpResult` instead of `InterpErrorKind`)
 - #167003 (remove `CodegenUnitNameBuilder`)
 - #167016 (std: Enable flock-based file locking on DragonFly BSD)
 - #162295 (Recover shorthand struct literals in if conditions)
 - #166597 (explicitly disable vector-packed-decimal feature in s390x naked funct…)
 - #166762 (Fix Location::strictly_dominates)
 - #166824 (Replace FIXMEs suggesting removal of `box` with a NOTE)
 - #166958 (Skip bodyless intrinsics as mono item roots)
 - #166960 ([tiny] Avoid ICE in suggestion)
 - #167005 (Clean up WrongNamespace handling in intra-doc link resolution)
@rust-bors
rust-bors Bot merged commit 4b9ee36 into rust-lang:main Dec 4, 2026
15 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Dec 4, 2026
rust-bors Bot pushed a commit that referenced this pull request Dec 4, 2026
Rollup merge of #166983 - JonathanBrouwer:ctfe-regression, r=RalfJung

Use `InterpResult` instead of `InterpErrorKind`

For performance, as `InterpResult` is smaller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants