diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-05 10:42:31 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-08 16:01:22 +1100 |
| commit | 3ce34f42e160d7e63132c7e3994861bb876eb943 (patch) | |
| tree | f7dde69064555f1ede42e902f57d294e5cc64f8b /compiler/rustc_codegen_gcc/example/alloc_example.rs | |
| parent | 1881055000485527e3ad69e2bc6c9fa247e3f06f (diff) | |
| download | rust-3ce34f42e160d7e63132c7e3994861bb876eb943.tar.gz rust-3ce34f42e160d7e63132c7e3994861bb876eb943.zip | |
Remove a second `DiagnosticBuilder::emit_without_consuming` call.
Instead of taking `seq` as a mutable reference, `maybe_recover_struct_lit_bad_delims` now consumes `seq` on the recovery path, and returns `seq` unchanged on the non-recovery path. The commit also combines an `if` and a `match` to merge two identical paths. Also change `recover_seq_parse_error` so it receives a `PErr` instead of a `PResult`, because all the call sites now handle the `Ok`/`Err` distinction themselves.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_example.rs')
0 files changed, 0 insertions, 0 deletions
