rust-lang/rust-clippy

Extensions to should_assert_eq

Open

#1,810 opened on Jun 3, 2017

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

Repository metrics

Stars
 (10,406 stars)
PR merge metrics
 (Avg merge 19d 22h) (113 merged PRs in 30d)

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