rust/compiler/rustc_parse/src/parser
Nicholas Nethercote cea683c08f Use .into_diagnostic() less.
This commit replaces this pattern:
```
err.into_diagnostic(dcx)
```
with this pattern:
```
dcx.create_err(err)
```
in a lot of places.

It's a little shorter, makes the error level explicit, avoids some
`IntoDiagnostic` imports, and is a necessary prerequisite for the next
commit which will add a `level` arg to `into_diagnostic`.

This requires adding `track_caller` on `create_err` to avoid mucking up
the output of `tests/ui/track-diagnostics/track4.rs`. It probably should
have been there already.
2023-12-18 20:46:13 +11:00
..
attr.rs Use .into_diagnostic() less. 2023-12-18 20:46:13 +11:00
attr_wrapper.rs Rename Parser::span_diagnostic as Parser::dcx. 2023-12-18 16:06:21 +11:00
diagnostics.rs Use .into_diagnostic() less. 2023-12-18 20:46:13 +11:00
expr.rs Use .into_diagnostic() less. 2023-12-18 20:46:13 +11:00
generics.rs Tweak unclosed generics errors 2023-12-01 20:01:39 +00:00
item.rs Use .into_diagnostic() less. 2023-12-18 20:46:13 +11:00
mod.rs Use .into_diagnostic() less. 2023-12-18 20:46:13 +11:00
nonterminal.rs Use .into_diagnostic() less. 2023-12-18 20:46:13 +11:00
pat.rs Use .into_diagnostic() less. 2023-12-18 20:46:13 +11:00
path.rs Use .into_diagnostic() less. 2023-12-18 20:46:13 +11:00
stmt.rs Rollup merge of #118394 - nnethercote:rm-hir-Ops, r=cjgillot 2023-11-29 04:23:23 +01:00
ty.rs coro_kind -> coroutine_kind 2023-12-08 17:23:25 +00:00