Nicholas Nethercote
958bc7b365
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 `/* */`.
2025-03-14 09:45:38 +11:00
..
2025-02-23 14:44:27 +08:00
2025-01-31 18:21:58 +00:00
2025-01-02 15:21:41 +03:00
2025-02-10 20:21:39 +00:00
2025-01-22 06:55:38 +00:00
2025-01-22 06:55:38 +00:00
2025-01-22 06:55:38 +00:00
2025-02-10 20:21:39 +00:00
2025-02-04 17:02:37 +05:30
2025-02-04 17:02:37 +05:30
2025-02-04 17:02:37 +05:30
2025-02-04 17:02:37 +05:30
2025-03-14 09:45:38 +11:00
2025-02-10 20:21:39 +00:00
2025-02-10 20:21:39 +00:00
2025-02-10 20:21:39 +00:00
2025-02-23 14:44:27 +08:00
2025-02-23 14:44:27 +08:00
2025-02-21 00:54:01 +00:00
2025-02-14 00:44:10 -08:00
2025-02-03 10:39:32 -05:00
2025-02-03 10:39:32 -05:00
2025-02-03 10:39:32 -05:00
2025-02-03 10:39:32 -05:00
2025-02-10 20:21:39 +00:00
2025-01-02 23:39:16 +00:00
2025-01-02 23:39:16 +00:00
2025-01-18 20:33:15 +00:00
2025-03-05 23:06:54 +00:00
2025-02-21 00:41:17 +00:00
2025-02-17 11:33:07 +00:00
2025-02-17 11:33:07 +00:00
2025-02-17 11:33:07 +00:00
2025-02-10 20:21:39 +00:00
2025-02-03 19:00:22 +00:00
2025-02-03 19:00:22 +00:00
2025-01-31 20:39:01 +00:00
2025-02-21 00:41:17 +00:00
2025-02-10 20:21:39 +00:00
2025-02-10 20:21:39 +00:00
2025-01-24 01:19:50 +00:00
2025-01-24 01:19:50 +00:00
2025-02-14 00:44:10 -08:00
2025-02-14 00:44:10 -08:00
2025-01-24 01:19:50 +00:00
2025-01-24 01:19:50 +00:00
2025-02-01 22:26:07 +01:00
2025-02-10 20:21:39 +00:00
2025-02-05 10:36:32 -05:00
2025-02-10 20:21:39 +00:00
2025-01-31 20:39:01 +00:00
2025-01-31 20:39:01 +00:00
2025-02-21 00:41:17 +00:00
2025-02-10 20:21:39 +00:00
2025-02-10 20:21:39 +00:00
2025-03-11 12:05:02 +00:00
2025-03-11 12:05:02 +00:00
2025-02-04 17:02:37 +05:30
2025-02-04 17:02:37 +05:30