Skip to content
Rust Search
← RustLab 2024

Design and Implementation of the `#[diagnostic]` attribute namespace

RustLab Conference
RustLab 22:20 195 views

The talk aims to introduce the `#[diagnostic]` attribute namespace. This new tool namespace allows to hint the Rust compiler to emit a specific error message text in certain situations. It's meant to help crate authors to take control over error messages emitted by the compiler that occur while upholding certain domain specific compile time constraints. The feature was stablized with Rust 1.78. LEVEL: Advanced

Player unavailable or embedding blocked? Use the YouTube link above.