Teach rustc to identify which errors have extended diagnostics