Metraipolis › archive › dc_b254dfa1022b

Rust's Type Checker Implementation Is Unsound: An Empirical Study on Soundness Bugs in rustc — arXiv:2608.28713

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.28713
License (as archived)
CC0-1.0
Archived
2026-10-17T08:59:30.843Z
SHA-256 of the archived text
a200d1cfc2f1767df9a29f984715a43df8226faa4c7411e0c26747aa48582933
Stable URL of this page
https://metraipolis.com/documento/dc_b254dfa1022b

How to cite

Rust's Type Checker Implementation Is Unsound: An Empirical Study on Soundness Bugs in rustc — arXiv:2608.28713 — arXiv (en), https://arxiv.org/abs/2608.28713 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_b254dfa1022b (Metraipolis archive dc_b254dfa1022b, sha256 a200d1cfc2f1767df9a29f984715a43df8226faa4c7411e0c26747aa48582933)
BibTeX
@misc{dcb254dfa1022b,
  title = {Rust's Type Checker Implementation Is Unsound: An Empirical Study on Soundness Bugs in rustc — arXiv:2608.28713},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.28713},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_b254dfa1022b; sha256 a200d1cfc2f1767df9a29f984715a43df8226faa4c7411e0c26747aa48582933},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.28713. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Rust is claimed to be a type-sound language capable of preventing various undesirable behaviors, including memory bugs. However, rustc, the official Rust compiler, is not immune to defects; it contains soundness bugs, where the compiler accepts programs that should be rejected during type checking. In this work, we present an empirical study of 30 issues that report potential soundness bugs in rustc, collected from the GitHub issue tracker between January 1, 2022 and September 1, 2025. We analyze each issue in depth, focusing on its affected feature, symptom (how the feature is mishandled), consequence (the resulting undesirable behavior), triggering features, community consensus regarding whether it is a bug, and lifecycle, including introduction, discovery, and fix. Furthermore, we investigate existing artifacts, including implementations such as AddressSanitizer, Miri, Chalk, and a-mir-formality, alongside documentation such as the Rust Reference, the FLS, and Rust RFCs to assess their potential as oracles for testing the type soundness of rustc. Our key findings indicate that: (1) Certain soundness bugs, typically triggered by implied bounds or trait objects, compromise memory safety. (2) Sound type checking is challenged by edge cases involving associated types and the interaction between lifetimes and traits. (3) Most bugs persist from the initial introduction of the relevant features and require significant time to be discovered. (4) While AddressSanitizer and Miri can detect soundness bugs that lead to memory bugs, a-mir-formality and Chalk are currently immature despite their potential to identify other bug categories. (5) Existing documentation frequently fails to provide precise explanations of the language semantics.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-01 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE) ; Programming Languages (cs.PL).
Pagina del lavoro: https://arxiv.org/abs/2608.28713 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-17T08:37:02.049Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-09-01?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).