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
assert_eq!(left, right) used to fail with fmt!("expected: %?, given: %?", right, left), which was confusing because it was neither clear which of the two parameters of assert_eq is supposed to be the 'given' and 'expected' value, and because the values got printed out swapped compared to the way the arguments are given.
It now fails with fmt!("left: %? != right: %?", left, right), which, while less confusing, is still kinda unclear because it doesn't contain any description of what happened.
The message should probably be more verbose, like fmt!("expected equal, but left side %? != right side %?", left, right)
The text was updated successfully, but these errors were encountered:
Rework use_self impl based on ty::Ty comparison rust-lang#3410 | Take 2
This builds on top of rust-lang#5531
I already reviewed and approved the commits by `@montrivo.` So only the review of my commits should be necessary.
I would also appreciate your review `@montrivo,` since you are familiar with the challenges here.
Fixesrust-lang#3410 and Fixesrust-lang#4143 (same problem)
Fixesrust-lang#2843Fixesrust-lang#3859Fixesrust-lang#4734 and fixesrust-lang#6221Fixesrust-lang#4305Fixesrust-lang#5078 (even at expression level now 🎉)
Fixesrust-lang#3881 and Fixesrust-lang#4887 (same problem)
Fixesrust-lang#3909
Not yet: rust-lang#4140 (test added)
All the credit for the fixes goes to `@montrivo.` I only refactored and copy and pasted his code.
changelog: rewrite [`use_self`] lint and fix multiple (8) FPs. One to go.
assert_eq!(left, right)
used to fail withfmt!("expected: %?, given: %?", right, left)
, which was confusing because it was neither clear which of the two parameters ofassert_eq
is supposed to be the 'given' and 'expected' value, and because the values got printed out swapped compared to the way the arguments are given.It now fails with
fmt!("left: %? != right: %?", left, right)
, which, while less confusing, is still kinda unclear because it doesn't contain any description of what happened.The message should probably be more verbose, like
fmt!("expected equal, but left side %? != right side %?", left, right)
The text was updated successfully, but these errors were encountered: