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   ### E0059  
This commit is contained in:
commit
8e206c0387
5 changed files with 96 additions and 36 deletions
|
@ -70,4 +70,4 @@ fn spawn<F: Future + Send + 'static>(future: F) {
|
|||
|
||||
Similarly to closures, `async` blocks are not executed immediately and may
|
||||
capture closed-over data by reference. For more information, see
|
||||
https://rust-lang.github.io/async-book/03_async_await/01_chapter.html.
|
||||
<https://rust-lang.github.io/async-book/03_async_await/01_chapter.html>.
|
||||
|
|
|
@ -20,7 +20,7 @@ where
|
|||
|
||||
The `DispatchFromDyn` trait currently can only be implemented for
|
||||
builtin pointer types and structs that are newtype wrappers around them
|
||||
— that is, the struct must have only one field (except for`PhantomData`),
|
||||
— that is, the struct must have only one field (except for `PhantomData`),
|
||||
and that field must itself implement `DispatchFromDyn`.
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue