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

@ -699,6 +699,16 @@ pub struct ForgetCopyDiag<'a> {
pub label: Span,
}
// invalid_from_utf8.rs
#[derive(LintDiagnostic)]
#[diag(lint_invalid_from_utf8_unchecked)]
pub struct InvalidFromUtf8UncheckedDiag {
pub method: String,
pub valid_up_to: usize,
#[label]
pub label: Span,
}
// hidden_unicode_codepoints.rs
#[derive(LintDiagnostic)]
#[diag(lint_hidden_unicode_codepoints)]