The Anatomy of Error Messages in Rust


How are Rust’s best-in-class error messages constructed? What are some takeaways that could inspire other programming language implementations? To figure out some answers to these questions, we’ll be digging through parts of rustc to uncover tidbits of this process. We’ll also take a high-level look at how some other programming languages construct error messages to compare and contrast these approaches.

Presented by

  • Sean Chen Sean Chen

    I work as a computer science teacher for my day job, where I teach remotely via zoom on a daily basis. I recently got involved with a Rust working group focusing on codifying and improving Rust’s error handling story. Learning more about different use-cases and considerations for error handling in Rust inspired the topic of this proposal.