about summary refs log tree commit diff
path: root/tests/coverage/branch/lazy-boolean.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-21 19:05:36 +0000
committerbors <bors@rust-lang.org>2024-05-21 19:05:36 +0000
commitea535c97d5c6922693bd255cc8594b410a02c97a (patch)
tree41d51dd628bec373e2469b3abf24245fb4bdf7d3 /tests/coverage/branch/lazy-boolean.rs
parent2efebd2f0c03dabbe5c3ad7b4ebfbd99238d1fb2 (diff)
parent1b6c91628eb53e6ddf71ca28b43da2a7659d1056 (diff)
downloadrust-ea535c97d5c6922693bd255cc8594b410a02c97a.tar.gz
rust-ea535c97d5c6922693bd255cc8594b410a02c97a.zip
Auto merge of #12804 - B14CK313:master, r=y21
fulfill expectations in `check_unsafe_derive_deserialize`

The utility function `clippy_utils::fulfill_or_allowed` is not used because using it would require to move the check for allowed after the check iterating over all inherent impls of the type, doing possibly unnecessary work.
Instead, `is_lint_allowed` is called as before, but additionally, once certain that the lint should be emitted, `span_lint_hir_and_then` is called instead of `span_lint_and_help` to also fulfill expectations.

Note: as this is my first contribution, please feel free to nitpick or request changes. I am happy to adjust the implementation.

fixes: #12802

changelog: fulfill expectations in [`unsafe_derive_deserialize`]
Diffstat (limited to 'tests/coverage/branch/lazy-boolean.rs')
0 files changed, 0 insertions, 0 deletions