about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-paths.js
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-04-15 10:05:20 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2025-04-15 10:40:58 +1000
commitf8edc831caa53cd08879f93dcf11b6e6daf5d1a5 (patch)
treea0eeb2727d35a0713b35f712048acc8e393849a5 /tests/rustdoc-js-std/parser-paths.js
parent092a284ba0421695f2032c947765429fd7095796 (diff)
downloadrust-f8edc831caa53cd08879f93dcf11b6e6daf5d1a5.tar.gz
rust-f8edc831caa53cd08879f93dcf11b6e6daf5d1a5.zip
Pretty-print `PatKind::Missing` as `_`.
Printing "no pattern" as `_` isn't ideal, but better than crashing, and
HIR pretty-printing already has plenty of imperfections. The added `f2`
and `f6` examples are ones that triggered the crash.

Note that some of the added examples are printed badly, e.g.
`fn(, ...)`. The next commit will fix those.

Fixes #139633.
Diffstat (limited to 'tests/rustdoc-js-std/parser-paths.js')
0 files changed, 0 insertions, 0 deletions