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
I'm personally ambivalent on this, but it might have some neat uses. FWIW, GHC is growing something tangentially related, "overloaded record fields", the core part of which is (in pseudo-Rust terms) essentially trait(s) HasField that give T: HasField<"foo", int> + HasField<"bar", f32> for
structT{foo:int,bar:f32}
so FSU would essentially become normal matching against HasField<"foo", T> for the fields foo: T that aren't explicitly listed. (This can't currently work directly for Rust, since we don't have strings in the type system.)
add [`manual_find`] lint for function return case
part of the implementation discussed in rust-lang#7143
changelog: add [`manual_find`] lint for function return case
I just thought of this and am not sure if there's some practical obstacle to it. Let's say you have:
It would be nice to be able to write:
The text was updated successfully, but these errors were encountered: