Skip to content

Add regression test for TransmuteFrom inference ICE#157200

Draft
Kuhai9801 wants to merge 1 commit into
rust-lang:mainfrom
Kuhai9801:add-transmute-from-inference-regression
Draft

Add regression test for TransmuteFrom inference ICE#157200
Kuhai9801 wants to merge 1 commit into
rust-lang:mainfrom
Kuhai9801:add-transmute-from-inference-regression

Conversation

@Kuhai9801
Copy link
Copy Markdown

@Kuhai9801 Kuhai9801 commented May 31, 2026

Fixes #151314.

Adds a next-solver UI regression test for an unconstrained TransmuteFrom<T> obligation involving an inference variable.

The current compiler emits a normal E0283 type-annotations diagnostic; the test ensures this case does not regress to an ICE.

Verification:

  • git diff --check
  • rustfmt +nightly-2026-05-28 --edition 2024 tests\ui\traits\next-solver\issue-151314-transmute-from-inference-var.rs
  • rustc +nightly-2026-05-28 -Znext-solver=globally tests\ui\traits\next-solver\issue-151314-transmute-from-inference-var.rs

@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. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) labels May 31, 2026
@rust-log-analyzer

This comment has been minimized.

@Kuhai9801 Kuhai9801 force-pushed the add-transmute-from-inference-regression branch from 6edbe79 to 5f1cd7b Compare May 31, 2026 14:48
@rust-log-analyzer

This comment has been minimized.

@Kuhai9801 Kuhai9801 force-pushed the add-transmute-from-inference-regression branch from 5f1cd7b to 91102e4 Compare May 31, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ICE]: layout_of: unexpected type _

3 participants