rust/compiler/rustc_errors/src
Matthias Krüger 8e206c0387
Rollup merge of #126994 - Alexendoo:explain-markdown, r=tgross35
Support lists and stylings in more places for `rustc --explain`

Adds support for `*foo*`, stylings not immediately following whitespace e.g. ``(`Foo`)`` and lists starting with whitespace:

```md
* previously supported
```
```md
 * now also supported
 ```

These are fairly common in the existing error docs, some before/after examples:

### E0460

![image](https://github.com/rust-lang/rust/assets/1830331/4d0dc5dd-b71f-48b1-97ae-9f7199e952ed)
![image](https://github.com/rust-lang/rust/assets/1830331/4bbcb1e4-99ba-4d0d-b338-fe19d96a5eb1)

### E0059

![image](https://github.com/rust-lang/rust/assets/1830331/8457f69a-3126-4777-aa4a-953f7b29f59b)
![image](https://github.com/rust-lang/rust/assets/1830331/ac2189f8-512e-4b3b-886d-6c4a619d17f2)
2024-07-23 19:42:35 +02:00
..
json Use a dedicated type instead of a reference for the diagnostic context 2024-06-18 15:42:11 +00:00
markdown Support lists and stylings in more places for rustc --explain 2024-07-10 13:41:36 +00:00
annotate_snippet_emitter_writer.rs Rename DiagnosticMessage as DiagMessage. 2024-03-05 12:14:49 +11:00
codes.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
diagnostic.rs Automatically taint InferCtxt when errors are emitted 2024-06-26 16:01:45 +00:00
diagnostic_impls.rs Make DiagSymbolList more generic 2024-07-04 17:57:31 +02:00
emitter.rs Properly handle removal suggestion rendering 2024-07-04 05:04:48 +00:00
error.rs Minor visibility and formatting improvements. 2024-02-29 16:30:09 +11:00
json.rs Clarify comment on changing to warn future breakage items 2024-06-26 17:00:46 +02:00
lib.rs Rollup merge of #126994 - Alexendoo:explain-markdown, r=tgross35 2024-07-23 19:42:35 +02:00
lock.rs windows bump to 0.52 2024-02-18 16:02:16 +03:00
registry.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
snippet.rs Remove extern crate rustc_macros from numerous crates. 2024-04-29 10:21:54 +10:00
styled_buffer.rs Replace some _ == _ || _ == _s with matches!(_, _ | _)s 2023-01-30 12:26:26 +00:00
tests.rs Rename DiagnosticMessage as DiagMessage. 2024-03-05 12:14:49 +11:00
translation.rs Remove extern crate tracing from numerous crates. 2024-04-30 16:47:49 +10:00