Skip to content

Comments

Revert "Fix an ICE in the vtable iteration for a trait reference"#152738

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
workingjubilee:revert-unsound-ice-patch
Feb 17, 2026
Merged

Revert "Fix an ICE in the vtable iteration for a trait reference"#152738
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
workingjubilee:revert-unsound-ice-patch

Conversation

@workingjubilee
Copy link
Member

The ICE fix appears to be unsound, causing a miscompilation involving dyn Trait and async {} which induces segfaults in safe Rust code. As the patch only hid an ICE, it does not seem worth the risk.

This addresses the problem in #152735 but it may still merit team discussion even if this PR is merged.

This reverts commit 8afd636, reversing changes made to 19122c0.

The ICE fix appears to be unsound, causing a miscompilation involving
`dyn Trait` and `async {}` which induces segfaults in safe Rust code.
As the patch only hid an ICE, it does not seem worth the risk.

This reverts commit 8afd636, reversing
changes made to 19122c0.
@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. labels Feb 17, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 17, 2026

r? @mati865

rustbot has assigned @mati865.
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
  • compiler expanded to 68 candidates
  • Random selection from 15 candidates

@lqd
Copy link
Member

lqd commented Feb 17, 2026

p-critical issue, straightforward reverts like this don't need reviews per se, easy r+ imho.

If you're not waiting on some wider discussion, r=me.

@mati865
Copy link
Member

mati865 commented Feb 17, 2026

@bors r+ p=10

@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 17, 2026

📌 Commit 18a707f has been approved by mati865

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 Feb 17, 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 Feb 17, 2026
@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 17, 2026

☀️ Test successful - CI
Approved by: mati865
Duration: 3h 49m 21s
Pushing 3f6250a to main...

@rust-bors rust-bors bot merged commit 3f6250a into rust-lang:main Feb 17, 2026
12 checks passed
@rustbot rustbot added this to the 1.95.0 milestone Feb 17, 2026
@github-actions
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 1210e9f (parent) -> 3f6250a (this PR)

Test differences

Show 14 test diffs

Stage 1

  • [crashes] tests/crashes/135470.rs: [missing] -> pass (J0)
  • [crashes] tests/crashes/137190-2.rs: [missing] -> pass (J0)
  • [crashes] tests/crashes/137190-3.rs: [missing] -> pass (J0)
  • [ui] tests/ui/coercion/vtable-impossible-predicates-async.rs: pass -> [missing] (J0)
  • [ui] tests/ui/coercion/vtable-unsatisfied-supertrait-generics.rs: pass -> [missing] (J0)
  • [ui] tests/ui/coercion/vtable-unsatisfied-supertrait.rs: pass -> [missing] (J0)

Stage 2

  • [ui] tests/ui/coercion/vtable-impossible-predicates-async.rs: pass -> [missing] (J1)
  • [ui] tests/ui/coercion/vtable-unsatisfied-supertrait-generics.rs: pass -> [missing] (J1)
  • [ui] tests/ui/coercion/vtable-unsatisfied-supertrait.rs: pass -> [missing] (J1)
  • [crashes] tests/crashes/135470.rs: [missing] -> pass (J2)
  • [crashes] tests/crashes/137190-2.rs: [missing] -> pass (J2)
  • [crashes] tests/crashes/137190-3.rs: [missing] -> pass (J2)

Additionally, 2 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 3f6250a7bb79e600d9036bbc7c8f65af43933643 --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. aarch64-apple: 3h 8m -> 3h 42m (+17.8%)
  2. pr-check-1: 33m 9s -> 28m 15s (-14.8%)
  3. dist-aarch64-apple: 1h 43m -> 1h 57m (+13.8%)
  4. dist-apple-various: 1h 53m -> 1h 38m (-13.4%)
  5. dist-aarch64-llvm-mingw: 1h 35m -> 1h 48m (+13.1%)
  6. dist-aarch64-msvc: 1h 49m -> 1h 37m (-11.2%)
  7. aarch64-gnu-debug: 1h 17m -> 1h 9m (-9.7%)
  8. pr-check-2: 42m 27s -> 38m 41s (-8.9%)
  9. i686-gnu-1: 2h 22m -> 2h 9m (-8.7%)
  10. x86_64-gnu-llvm-20-3: 1h 46m -> 1h 55m (+8.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 (3f6250a): comparison URL.

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

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.2% [0.2%, 0.3%] 4
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.9% [-1.3%, -0.5%] 16
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results (primary 2.3%)

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

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

Cycles

Results (secondary 0.8%)

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)
3.6% [3.5%, 3.7%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-4.7% [-4.7%, -4.7%] 1
All ❌✅ (primary) - - 0

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 482.345s -> 480.825s (-0.32%)
Artifact size: 397.85 MiB -> 395.77 MiB (-0.52%)

@rustbot rustbot added the perf-regression Performance regression. label Feb 17, 2026
@lqd
Copy link
Member

lqd commented Feb 17, 2026

revert of #152287 which landed in the rollup #152399 and should have seen the opposite effect

@rustbot label: +perf-regression-triaged

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. 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