about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-25 14:56:07 +0000
committerbors <bors@rust-lang.org>2024-02-25 14:56:07 +0000
commitc469cb0023e9bade9ab12c7363ebd8261a334c4c (patch)
tree42b9207ef8fb2d05b50da3aff0dddf39e8951671 /compiler/rustc_interface/src
parent76e48641199d783c75baddd03937cdf872374c29 (diff)
parent5a63cd82cb1e94736fa6217d3004b77212c8132a (diff)
downloadrust-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