1
Fork 0

Add support for deferred casting for the invalid_reference_casting lint

This commit is contained in:
Urgau 2023-07-14 22:10:14 +02:00
parent 345d6b816b
commit f3dafe91ff
6 changed files with 83 additions and 35 deletions

View file

@ -319,6 +319,7 @@ lint_invalid_nan_comparisons_eq_ne = incorrect NaN comparison, NaN cannot be dir
lint_invalid_nan_comparisons_lt_le_gt_ge = incorrect NaN comparison, NaN is not orderable
lint_invalid_reference_casting = casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
.label = casting happend here
lint_lintpass_by_hand = implementing `LintPass` by hand
.help = try using `declare_lint_pass!` or `impl_lint_pass!` instead