about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authordswij <dharmasw@outlook.com>2025-07-20 15:29:46 +0000
committerGitHub <noreply@github.com>2025-07-20 15:29:46 +0000
commit0b168815a46bd8132871b909405bf15f12a5438c (patch)
treeeb49e8a9ae943e68454c31a5c5c5ed1adc52bb21 /compiler/rustc_codegen_gcc
parentc8e333c8c07c248dda19d3dc7fe6c896c6ba1f40 (diff)
parentb2c4e6de2fbcd8dccd60acc6cfbd0492e983dd6c (diff)
downloadrust-0b168815a46bd8132871b909405bf15f12a5438c.tar.gz
rust-0b168815a46bd8132871b909405bf15f12a5438c.zip
fix: ignore pattern_type_mismatch when external macro owns the match (#15306)
Don't trigger the `ignore_type_mismatch` lint when the `match scrutinee`
is generated by a macro.

If the macro generates

```
match &scrutinee {
    _ => {},
    () => {},
}
```

We don't expect it to hit on `()`.

Rust Playground example:

https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=b23aca42440f006660bd7440d02db196

changelog: [`pattern_type_mismatch`]: fix unwanted hit in external macro
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions