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
Not sure what the best work around is. Enums are often complicated enough that hand-writing an equality function is a pita. I've been using fmt!("%?", my_enum) in unit tests which more or less works. But that is now broken for recursive enums, see #3556.
We will need the deriving feature to be added for this to work. For enums with no payloads (self as uint) == (other as uint) works fine. But for others it's a nuisance.
Move sched_getaffinity back to Linux
This reverts commit c1a3f8576ea12b0bed68ad3dedf4069ca3d9816f. The shim isn't actually useful for anything, and it is untested on FreeBSD. On Linux it exists solely because std and num_cpus are trying this before falling back to `sysconf`, but on FreeBSD that's not how they work, so there's no reason I can see to have this stub shim on FreeBSD.
With master pulled on Sep 22, 2012 it fails with
failed to find an implementation of trait @core::cmp::Eq for MyEnum
.(I know that this is a known issue, but it's good to formally track it, especially if it isn't fixed for 0.4).
The text was updated successfully, but these errors were encountered: