rust/compiler/rustc_errors/src
Michael Goulet e5ecf629dd
Rollup merge of #102763 - compiler-errors:nits, r=cjgillot
Some diagnostic-related nits

1. Use `&mut Diagnostic` instead of `&mut DiagnosticBuilder<'_, T>`
2. Make `diag.span_suggestions` take an `IntoIterator` instead of `Iterator`, just to remove some `.into_iter` calls on the caller.

idk if I should add a lint to make sure people use `&mut Diagnostic` instead of `&mut DiagnosticBuilder<'_, T>` in cases where we're just, e.g., adding subdiagnostics to the diagnostic... maybe a followup.
2022-11-09 21:53:34 -08:00
..
json Implement -Ztrack-diagnostics 2022-10-19 00:08:20 +02:00
annotate_snippet_emitter_writer.rs errors: use HashMap to store diagnostic args 2022-10-10 14:20:16 +01:00
diagnostic.rs Rollup merge of #102763 - compiler-errors:nits, r=cjgillot 2022-11-09 21:53:34 -08:00
diagnostic_builder.rs Make span_suggestions take IntoIterator 2022-11-09 19:42:23 +00:00
diagnostic_impls.rs Port DlltoolFailImportLibrary and implement IntoDiagnosticArg for Cow<'a, str> 2022-11-09 14:56:21 +01:00
emitter.rs Address some comments 2022-10-24 20:52:51 +02:00
json.rs Implement -Ztrack-diagnostics 2022-10-19 00:08:20 +02:00
lib.rs Rollup merge of #103397 - crlf0710:port_dead_code_lint, r=davidtwco 2022-11-04 18:52:26 +01:00
lock.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
registry.rs Remove (lots of) dead code 2021-03-27 22:16:33 -04:00
snippet.rs Compute most of Public/Exported access level in rustc_resolve 2022-01-09 21:33:14 +00:00
styled_buffer.rs Spellchecking some comments 2022-03-30 01:39:38 -04:00
translation.rs errors: DiagnosticMessage::Eager 2022-10-10 14:20:16 +01:00