add: lints.rs
add: `lints.rs` refactor: move `InvalidAtomicOrderingDiag` to `lints.rs`
This commit is contained in:
11
compiler/rustc_lint/src/lints.rs
Normal file
11
compiler/rustc_lint/src/lints.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
use rustc_macros::LintDiagnostic;
|
||||
use rustc_span::{Symbol, Span};
|
||||
|
||||
#[derive(LintDiagnostic)]
|
||||
#[diag(lint_atomic_ordering_invalid)]
|
||||
#[help]
|
||||
pub struct InvalidAtomicOrderingDiag {
|
||||
pub method: Symbol,
|
||||
#[label]
|
||||
pub fail_order_arg_span: Span,
|
||||
}
|
||||
Reference in New Issue
Block a user