rust-lang/rust-clippy

Extensions to should_assert_eq

Open

#1,810 opened on 2017年6月3日

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
 (平均マージ 19d 22h) (30d で 113 merged PRs)

説明

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.

コントリビューターガイド