about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorJakob Schwarz <jakob@swrz.dev>2024-05-15 15:07:34 +0200
committerJakob Schwarz <jakob@swrz.dev>2024-05-16 19:54:42 +0200
commitfc2f7035c67af9ac44ac7c9186323ac903446c47 (patch)
tree07d14274a8238b1844d83fe834bbecb21666bb08 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parente669d97494e82741b2a06cab2e5eb163c9986833 (diff)
downloadrust-fc2f7035c67af9ac44ac7c9186323ac903446c47.tar.gz
rust-fc2f7035c67af9ac44ac7c9186323ac903446c47.zip
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.

fixes: #12802

changelog: fulfill expectations in `check_unsafe_derive_deserialize`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions