diff options
| author | dswij <dharmasw@outlook.com> | 2025-07-20 15:29:46 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-20 15:29:46 +0000 |
| commit | 0b168815a46bd8132871b909405bf15f12a5438c (patch) | |
| tree | eb49e8a9ae943e68454c31a5c5c5ed1adc52bb21 /compiler/rustc_codegen_gcc | |
| parent | c8e333c8c07c248dda19d3dc7fe6c896c6ba1f40 (diff) | |
| parent | b2c4e6de2fbcd8dccd60acc6cfbd0492e983dd6c (diff) | |
| download | rust-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
