diff options
| author | IQuant <quant3234@gmail.com> | 2022-09-06 17:54:29 +0300 |
|---|---|---|
| committer | Nikita Tomashevich <quant3234@gmail.com> | 2022-09-06 18:41:09 +0300 |
| commit | cb7ad9e54853aa5bc217a147d74e3289f6c45489 (patch) | |
| tree | 185aff83fecb2526fce8477ae0b47a1561c46163 /compiler/rustc_infer/src/errors | |
| parent | 59c567296a8dd2b6c36765dbb14caf68cc9cf9af (diff) | |
| download | rust-cb7ad9e54853aa5bc217a147d74e3289f6c45489.tar.gz rust-cb7ad9e54853aa5bc217a147d74e3289f6c45489.zip | |
Slightly more concise comment
Co-authored-by: David Wood <agile.lion3441@fuligin.ink>
Diffstat (limited to 'compiler/rustc_infer/src/errors')
| -rw-r--r-- | compiler/rustc_infer/src/errors/mod.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_infer/src/errors/mod.rs b/compiler/rustc_infer/src/errors/mod.rs index 911381b367f..5eedca78489 100644 --- a/compiler/rustc_infer/src/errors/mod.rs +++ b/compiler/rustc_infer/src/errors/mod.rs @@ -453,10 +453,7 @@ pub enum TraitSubdiag { Sugg { span: Span }, } -// FIXME We can't rely on Vec<Subdiag> working well at the moment, -// 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. +// FIXME(#100717) used in `Vec<TraitSubdiag>` so requires eager translation/list support impl AddSubdiagnostic for TraitSubdiag { fn add_to_diagnostic(self, diag: &mut rustc_errors::Diagnostic) { match self { |
