diff options
| author | bors <bors@rust-lang.org> | 2024-02-25 14:56:07 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-25 14:56:07 +0000 |
| commit | c469cb0023e9bade9ab12c7363ebd8261a334c4c (patch) | |
| tree | 42b9207ef8fb2d05b50da3aff0dddf39e8951671 /compiler/rustc_interface/src | |
| parent | 76e48641199d783c75baddd03937cdf872374c29 (diff) | |
| parent | 5a63cd82cb1e94736fa6217d3004b77212c8132a (diff) | |
| download | rust-c469cb0023e9bade9ab12c7363ebd8261a334c4c.tar.gz rust-c469cb0023e9bade9ab12c7363ebd8261a334c4c.zip | |
Auto merge of #12336 - not-elm:fix/issue-12243, r=y21
FIX(12243): redundant_guards
Fixed #12243
changelog: Fix[`redundant_guards`]
I have made a correction so that no warning does appear when y.is_empty() is used within a constant function as follows.
```rust
pub const fn const_fn(x: &str) {
match x {
// Shouldn't lint.
y if y.is_empty() => {},
_ => {},
}
}
```
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions
