rust-lang/rust-clippy

Extensions to should_assert_eq

Open

#1810 opened on Jun 3, 2017

View on GitHub
 (1 comment) (1 reaction) (1 assignee)Rust (10,406 stars) (1,391 forks)batch import
C-enhancementgood first issue

Description

I found this in the standard library:

assert!(o == owned && b == borrowed)

This should be a case for should_assert_eq. Additionally, it might be nice to have a lint that suggests splitting asserts with && to multiple assert statements, for better debugging.

Contributor guide