about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-07-23 19:42:35 +0200
committerGitHub <noreply@github.com>2024-07-23 19:42:35 +0200
commit8e206c0387d9b94bc3ae36594c8a97f645fddbd3 (patch)
tree595eca69564afb3301cf95ce162af403c717c41f /compiler/rustc_pattern_analysis/src/errors.rs
parentf1a29ee2263183d1016e622af640074274a81cd2 (diff)
parent5824ab178b0b28c948798576de78625ba8209adc (diff)
downloadrust-8e206c0387d9b94bc3ae36594c8a97f645fddbd3.tar.gz
rust-8e206c0387d9b94bc3ae36594c8a97f645fddbd3.zip
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)
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions