1
Fork 0

Uplift clippy::invalid_utf8_in_unchecked as invalid_from_utf8_unchecked

This commit is contained in:
Urgau 2023-05-13 17:12:45 +02:00
parent 1a5f8bce74
commit 7f8846a9ef
8 changed files with 211 additions and 0 deletions

View file

@ -304,6 +304,10 @@ lint_improper_ctypes_union_layout_help = consider adding a `#[repr(C)]` or `#[re
lint_improper_ctypes_union_layout_reason = this union has unspecified layout
lint_improper_ctypes_union_non_exhaustive = this union is non-exhaustive
# FIXME: we should ordinalize $valid_up_to when we add support for doing so
lint_invalid_from_utf8_unchecked = calls to `{$method}` with a invalid literal are undefined behavior
.label = the literal was valid UTF-8 up to the {$valid_up_to} bytes
lint_lintpass_by_hand = implementing `LintPass` by hand
.help = try using `declare_lint_pass!` or `impl_lint_pass!` instead