about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src
diff options
context:
space:
mode:
authorJubilee <46493976+workingjubilee@users.noreply.github.com>2024-07-21 17:44:30 -0700
committerGitHub <noreply@github.com>2024-07-21 17:44:30 -0700
commitd484654a5ec3ade413205ec03e403fccae4937dc (patch)
treec8353631fb11103c1b1f7ed3975e401c955d9cf4 /compiler/rustc_hir_analysis/src
parentb9c9f07db0705b9686a0b8a0aec03c887577211a (diff)
parent8a49d83db730f3dfdd7f0c04df823549bf571b33 (diff)
downloadrust-d484654a5ec3ade413205ec03e403fccae4937dc.tar.gz
rust-d484654a5ec3ade413205ec03e403fccae4937dc.zip
Rollup merge of #128033 - Nadrieril:explain-empty-wildcards, r=compiler-errors
Explain why we require `_` for empty patterns

This adds a note to the "non-exhaustive patterns" diagnostic to explain why we sometimes require extra `_` patterns on empty types. This is one of the two diagnostic improvements I wanted to do before [stabilizing `min_exhaustive_patterns`](https://github.com/rust-lang/rust/pull/122792).

r? ``@compiler-errors``
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
0 files changed, 0 insertions, 0 deletions