In most places, we use a span when emitting `expected...found` errors. However, there were a couple of places where we didn't use any span, resulting in hard-to-interpret error messages. This commit attaches the relevant span to these notes, and additionally switches over to using `note_expected_found` instead of manually formatting the message |
||
|---|---|---|
| .. | ||
| assoc-type.rs | ||
| assoc-type.stderr | ||
| dyn-trait.nll.stderr | ||
| dyn-trait.rs | ||
| dyn-trait.stderr | ||
| explicit-and-elided-same-header.rs | ||
| inherent-impl.rs | ||
| path-elided.rs | ||
| path-elided.stderr | ||
| path-underscore.rs | ||
| ref-underscore.rs | ||
| trait-elided.rs | ||
| trait-elided.stderr | ||
| trait-underscore.rs | ||