Skip to content

Commit 4047db9

Browse files
committed
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: rust-lang#12802 changelog: fulfill expectations in `check_unsafe_derive_deserialize`
1 parent e669d97 commit 4047db9

File tree

3,594 files changed

+0
-354072
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,594 files changed

+0
-354072
lines changed

.cargo/config.toml

-18
This file was deleted.

.editorconfig

-22
This file was deleted.

.gitattributes

-3
This file was deleted.

.github/ISSUE_TEMPLATE/blank_issue.yml

-44
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.yml

-57
This file was deleted.

.github/ISSUE_TEMPLATE/config.yml

-5
This file was deleted.

.github/ISSUE_TEMPLATE/false_negative.yml

-50
This file was deleted.

.github/ISSUE_TEMPLATE/false_positive.yml

-68
This file was deleted.

.github/ISSUE_TEMPLATE/ice.yml

-48
This file was deleted.

.github/ISSUE_TEMPLATE/new_lint.yml

-48
This file was deleted.

0 commit comments

Comments
 (0)