1
Fork 0

Slightly more concise comment

Co-authored-by: David Wood <agile.lion3441@fuligin.ink>
This commit is contained in:
IQuant 2022-09-06 17:54:29 +03:00 committed by Nikita Tomashevich
parent 59c567296a
commit cb7ad9e548
No known key found for this signature in database
GPG key ID: B29791D4D878E345

View file

@ -453,10 +453,7 @@ pub enum TraitSubdiag {
Sugg { span: Span }, Sugg { span: Span },
} }
// FIXME We can't rely on Vec<Subdiag> working well at the moment, // FIXME(#100717) used in `Vec<TraitSubdiag>` so requires eager translation/list support
// as only the args from one of the subdiagnostics will actually be used.
// This results in an incorrect diagnostic if more than two subdiags with the same slug are added.
// Use untranslated messages for now.
impl AddSubdiagnostic for TraitSubdiag { impl AddSubdiagnostic for TraitSubdiag {
fn add_to_diagnostic(self, diag: &mut rustc_errors::Diagnostic) { fn add_to_diagnostic(self, diag: &mut rustc_errors::Diagnostic) {
match self { match self {