-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression in #[derive(Eq)] on type with non-Eq members. #36830
Comments
Caused by #36384 |
Explanation: previous ".assert_param_is_eq" used method resolution, finding slice methods on arrays. New code only looks at the type itself (the array). |
Theoretically, this is a bugfix, because the previous implementation didn't enforced the bounds properly. |
Without this road block, there would be many more Eq implementations on structs with floats in them. |
Should maybe crater #36384 to see the "bugfix" impact. |
Discussed during libs triage, conclusion was that we're likely to let this slide (as it's a bug fix) but we'll wait for the next crater build to ensure that no massive impact is seen. |
Ok, ran crater, there are two regressions related to this I believe the latter is yours, right @rphmeier? The former presumably hasn't been reported yet. |
adding back the nominated tag to discuss again. |
@alexcrichton right, I haven't published the fix to crates.io yet though. |
Ok, the libs team discussed this today and the conclusion was that we can just send PRs to fix these issues. @rphmeier to clarify have you got this fixed locally? If you need any help I can send a PR! |
@bluss holy cow thanks so much for sending a PR to fix |
@alexcrichton Yep, fixed in the repo, just haven't pushed the fix to crates.io yet. I'll try and do it tomorrow. |
Ok, in that case I'm going to close this, thanks for the update though! |
Playground: https://play.rust-lang.org/?gist=ca6a481e640668153d66259c0ef1dde6&version=stable&backtrace=0
Succeeds on
rustc 1.11.0 (9b21dcd6a 2016-08-15)
, but fails onrustc 1.13.0-beta.1 (cbbeba430 2016-09-28)
Seems to be related to
std::cmp::AssertParamIsEq
.The text was updated successfully, but these errors were encountered: