You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`len_without_is_empty` improvements
fixes: rust-lang#6958fixes: rust-lang#6972
changelog: Check the return type of `len`. Only integral types, or an `Option` or `Result` wrapping one.
changelog: Ensure the return type of `is_empty` matches. e.g. `Option<usize>` -> `Option<bool>`
Not necessarily unprecedented, but can still be surprising:
Do we want to allow this, along with
32768i16
and so on? See also #2438 and #6012.The text was updated successfully, but these errors were encountered: