Diagnostic/subdiagnostic example struct /struct field fluent slugs outdated #1913
Labels
A-diagnostics
Area: diagnostics
A-diagnostics-infra
Area: diagnostics infrastructure
A-translation
Area: diagnostics translation and other translations
E-medium
Difficulty: might require some prior knowledge or code reading
I-outdated
Issue: info is outdated
T-compiler
Relevant to compiler team
The example on https://rustc-dev-guide.rust-lang.org/diagnostics/diagnostic-structs.html is given as
but I believe this doesn't work anymore because the
label
's slug needs to be prefixed by the crate name, so the example needs to become e.g.Probably worth mentioning more explicitly because I wasted 15 minutes trying to debug why my label slugs weren't working lol
The text was updated successfully, but these errors were encountered: