Skip to content

codegen_cranelift: Fix backend limit diagnostics#1673

Merged
bjorn3 merged 3 commits into
rust-lang:mainfrom
Dnreikronos:codegen_cranelift/backend_limit_diagnostics
Jul 6, 2026
Merged

codegen_cranelift: Fix backend limit diagnostics#1673
bjorn3 merged 3 commits into
rust-lang:mainfrom
Dnreikronos:codegen_cranelift/backend_limit_diagnostics

Conversation

@Dnreikronos

@Dnreikronos Dnreikronos commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

refs rust-lang/rust#158827 (comment)

backend impl-limit and verifier errors were using an early diag context inside codegen. that made worker-thread fatals come out weird, and imo i prefer reporting them through the session dcx we already have.

passes the dcx into aot/jit compile_fn calls and uses it for cranelift backend-limit/verifier failures. i dropped the regression after ci showed it also runs under --use-backend llvm, where the sample compiles fine. idk if there is a nicer target-generic reproducer yet; ltm if there is.

@bjorn3 bjorn3 merged commit 23c7935 into rust-lang:main Jul 6, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants