mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
c469cb0023
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() => {}, _ => {}, } } ```