rust-lang/rust-clippy

Extensions to should_assert_eq

Open

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

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

仓库指标

Star
 (10,406 star)
PR 合并指标
 (平均合并 19天 22小时) (30 天内合并 113 个 PR)

描述

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.

贡献者指南