migrate: methods.rs
This commit is contained in:
parent
3f69c1b523
commit
95d3e0cb78
2 changed files with 15 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue