migrate: methods.rs

This commit is contained in:
Rejyr 2022-09-05 15:37:30 -04:00
parent 3f69c1b523
commit 95d3e0cb78
2 changed files with 15 additions and 9 deletions

View file

@ -6,6 +6,16 @@ use rustc_span::{symbol::Ident, Span, Symbol};
use crate::LateContext;
#[derive(LintDiagnostic)]
#[diag(lint_cstring_ptr)]
#[note]
#[help]
pub struct CStringPtr {
#[label(as_ptr_label)]
pub as_ptr: Span,
#[label(unwrap_label)]
pub unwrap: Span,
}
#[derive(LintDiagnostic)]
#[diag(lint_identifier_non_ascii_char)]
pub struct IdentifierNonAsciiChar;