rust/compiler/rustc_errors/src
Dylan DPC e11511dfa6
Rollup merge of #103051 - davidtwco:translation-tidying-up, r=compiler-errors
translation: doc comments with derives, subdiagnostic-less enum variants, more derive use

- Adds support for `doc` attributes in the diagnostic derives so that documentation comments don't result in the derive failing.
- Adds support for enum variants in the subdiagnostic derive to not actually correspond to an addition to a diagnostic.
- Made use of the derive in more places in the `rustc_ast_lowering`, `rustc_ast_passes`, `rustc_lint`, `rustc_session`, `rustc_infer` - taking advantage of recent additions like eager subdiagnostics, multispan suggestions, etc.

cc #100717
2022-10-21 17:29:58 +05:30
..
json Use serde_json for json error messages 2022-06-03 16:46:19 +00:00
annotate_snippet_emitter_writer.rs errors: use HashMap to store diagnostic args 2022-10-10 14:20:16 +01:00
diagnostic.rs Implement assertions and fixes to not emit empty spans without suggestions 2022-10-20 08:25:31 +00:00
diagnostic_builder.rs errors: add emit_note/create_note 2022-10-07 13:19:27 -06:00
diagnostic_impls.rs lint: use derive more 2022-10-17 09:54:24 +01:00
emitter.rs errors: use HashMap to store diagnostic args 2022-10-10 14:20:16 +01:00
json.rs errors: use HashMap to store diagnostic args 2022-10-10 14:20:16 +01:00
lib.rs UPDATE - Move IntoDiagnosticArg implementations to diagnostic_impls file 2022-10-12 16:55:28 -04: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