]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #33976 - komamitsu:assert_eq_with_msg, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 22 Jun 2016 08:05:56 +0000 (01:05 -0700)
committerGitHub <noreply@github.com>
Wed, 22 Jun 2016 08:05:56 +0000 (01:05 -0700)
Add custom message parameter to `assert_eq!`

`assert!` macro accepts a custom message parameter and it's sometimes useful. But `assert_eq!` doesn't have it and users need to use `assert!` instead of `assert_eq!` when they want to output a custom message even if the assertion just compares two values. This pull request will resolve those cases.


Trivial merge