diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-14 08:40:43 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-14 09:45:38 +1100 |
| commit | 958bc7b3655a0880361b11f9052fab84030cde26 (patch) | |
| tree | eed0f26438c0aee8e94d4a9e92bd5924a0fb4771 /compiler/rustc_parse/src | |
| parent | 9714f60f1d54450ac4d17416947d1c659429c311 (diff) | |
| download | rust-958bc7b3655a0880361b11f9052fab84030cde26.tar.gz rust-958bc7b3655a0880361b11f9052fab84030cde26.zip | |
Handle `_` properly in a couple of places.
Currently (PatKind::Wild` (i.e. `_`) gets turned by `lower_fn_params_to_names` into an empty identifier, which means it is printed incorrectly by HIR pretty printing. And likewise for `lower_fn_params_to_names`, which affects some error messages. This commit fixes them. This requires a slight tweak in a couple of places to continue using parameter numbers in some error messages. And it improves the output of `tests/ui/typeck/cyclic_type_ice.rs`: `/* _ */` is a better suggestion than `/* */`.
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions
