`manual_assert_eq` must take size into consideration
C-buggood first issueI-false-positive
### Summary
I often use `vec_a == vec_b` in tests when values might contain a few megabytes of data. Replacing it with equality check is a very bad idea.
### Lint Name
manual_assert_eq
### Reproducer
I do not have a reduced example yet and it is often hard to determine the actual amount of information that is going to be printed, but here is a typical example where the amount of data is ~1 MiB (in hex it is 2x that): https://github.com/nazar-pc/abundance/blob/5fc338fce4d204bf0e0544e178405745dfce0acb/crates/farmer/ab-farmer/src/single_disk_farm/plot_cache/tests.rs#L115-L118
With complex reference counted values I'm not even sure how useful this lint is beyond the simplest cases.
### Version
```text
rustc 1.99.0-nightly (1a98b1e13 2026-08-07)
binary: rustc
commit-hash: 1a98b1e135b254f209c67d447b6d8bcd56a859e0
commit-date: 2026-08-07
host: x86_64-unknown-linux-gnu
release: 1.99.0-nightly
LLVM version: 23.1.0
```
### Additional Labels
_No response_
6 条评论