rust-lang/rust-clippy

Extensions to should_assert_eq

Open

#1,810 创建于 2017年6月3日

在 GitHub 查看
 (1 评论) (1 反应) (1 负责人)Rust (10,406 star) (1,391 fork)batch import
C-enhancementgood first issue

描述

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.

贡献者指南

Extensions to should_assert_eq · rust-lang/rust-clippy#1810 | Good First Issue