Uplift clippy::invalid_utf8_in_unchecked as invalid_from_utf8_unchecked
This commit is contained in:
parent
1a5f8bce74
commit
7f8846a9ef
8 changed files with 211 additions and 0 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue