rust-lang / rust-lang/rust

[ICE]: compiler unexpectedly panicked when building librsvg-2.62.2-r1

Open
#158,857 22 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug I-ICE requires-custom-config requires-debug-assertions S-needs-info S-needs-repro T-compiler
Dominant language
Rust
Stars
119k
Forks
16.2k
PR merge metrics
PR metrics pending

Description

View all comments

Getting the compiler unexpectedly panicked. This is a bug when compiling librsvg-2.62.2-r1

query stack during panic:
#0 [def_span] looking up span for `action_map::ActionMapExtManual::add_action_entries::{closure#0}`
#1 [typeck] type-checking `action_map::ActionMapExtManual::add_action_entries`
#2 [analysis] running analysis passes on crate `gio`
end of query stack

thread 'rustc' (3043) panicked at /rustc-dev/59807616e1fa2540724bfbac14d7976d7e4a3860/compiler/rustc_middle/src/hir/map.rs:988:9:
assertion `left == right` failed
  left: #0
 right: #54
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Meta

rustc --version --verbose:

rustc 1.95.0 (59807616e 2026-04-14) (gentoo)
binary: rustc
commit-hash: 59807616e1fa2540724bfbac14d7976d7e4a3860
commit-date: 2026-04-14
host: x86_64-unknown-linux-gnu
release: 1.95.0
LLVM version: 22.1.3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the librsvg-2.62.2-r1 build with rustc 1.95.0 (commit 59807616e) and inspect the query stack for action_map::ActionMapExtManual::add_action_entries. Start at compiler/rustc_middle/src/hir/map.rs:988 and the def_span and typeck entries; done means the build no longer triggers this compiler panic.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.